It is narrated from Hazrat Anas (may Allah be pleased with him) that once the time for prayer arrived, the Prophet (peace and blessings be upon him) was conversing in private with a man in the mosque, until the people fell asleep, then the Prophet (peace and blessings be upon him) led his companions in prayer.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 12314