The prophet (ﷺ) persuaded them to say prayer in congregation and prohibited them to leave before he goes away from the prayer.
Sunan Abi Dawud Book 2, Hadith 234