Abu Hurairah reported,

A man left the mosque after the muezzin had given the call to prayer, so Abu Hurayrah said, "As for this man, he has disobeyed Abu al-Qasim ﷺ."In the narration of Sharik, he then said, "The Messenger of Allah ﷺ commanded us, 'When you are in the mosque and the call to prayer is given, none of you should leave until he has prayed.'"

Ahmad 10933

Sahih

حدثنا هاشم حدثنا المسعودي وشريك عن أشعث بن أبي الشعثاء عن أبيه

عن أبي هريرة قال

خرج رجل من المسجد بعدما أذن المؤذن فقال أما هذا فقد عصى أبا القاسم ﷺ قال وفي حديث شريك ثم قال أمرنا رسول الله ﷺ إذا كنتم في المسجد فنودي بالصلاة فلا يخرج أحدكم حتى يصلي

أحمد 10933صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 10933
Ahmad 10933