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.'"
حدثنا هاشم حدثنا المسعودي وشريك عن أشعث بن أبي الشعثاء عن أبيه
خرج رجل من المسجد بعدما أذن المؤذن فقال أما هذا فقد عصى أبا القاسم ﷺ قال وفي حديث شريك ثم قال أمرنا رسول الله ﷺ إذا كنتم في المسجد فنودي بالصلاة فلا يخرج أحدكم حتى يصلي