Abu Sha’tha says that after the mu’adhdhin had given the adhan, a man left the mosque. Seeing this, Sayyiduna Abu Hurairah (may Allah be pleased with him) said: This person has disobeyed Abu al-Qasim (peace and blessings be upon him). In the narration reported by Sharik, it is stated: Then Sayyiduna Abu Hurairah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) commanded us: When you are in the mosque and the adhan is called for prayer, none of you should leave (the mosque) until he has performed the prayer.
Hadith Referenceالفتح الربانی / كتاب الصلاة / 1313