Hadithcore
Sunan Abi Dawud, 624

Anas said:

The prophet (ﷺ) persuaded them to say prayer in congregation and prohibited them to leave before he goes away from the prayer.

حَدَّثَنَا مُحَمَّدُ بْنُ الْعَلاَءِ، حَدَّثَنَا حَفْصُ بْنُ بُغَيْلٍ الْمُرْهِبِيُّ، حَدَّثَنَا زَائِدَةُ، عَنِ الْمُخْتَارِ بْنِ فُلْفُلٍ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم حَضَّهُمْ عَلَى الصَّلاَةِ وَنَهَاهُمْ أَنْ يَنْصَرِفُوا قَبْلَ انْصِرَافِهِ مِنَ الصَّلاَةِ ‏.‏

References2 variants
In-Book Reference
Book 2, Hadith 234
English Reference
Book 2, Hadith 624