The prophet (ﷺ) persuaded them to say prayer in congregation and prohibited them to leave…

Sunan Abu Dawud Book 2 Hadith 234

Sunan Abu Dawud #624

Prayer (Kitab Al-Salat) 2:234

Anas said:

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

Chapter: About Turning Around To Leave Before The Imam