The Supplication of the Tashahhud - Section 2 Mishkat al-Masabih 954

Arabic hadith text
وَعَنْ أَنَسٍ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ حَضَّهُمْ عَلَى الصَّلَاةِ وَنَهَاهُمْ أَنْ يَنْصَرِفُوا قَبْلَ انْصِرَافِهِ مِنَ الصَّلَاةِ. رَوَاهُ أَبُو دَاوُدَ
Translation

Anas said that the Prophet urged them to pray and forbade them to leave after prayer before he did. Abu Dawud transmitted it.