Uthman bin Affan reported,

The Messenger of Allah ﷺ said, "Whoever is in the mosque when the call to prayer is given, then leaves not for a genuine need and without intending to return, is a hypocrite."

Ibn Majah 734

Daif

حدثنا حرملة بن يحيى حدثنا عبد الله بن وهب قال أنبأنا عبد الجبار بن عمر عن ابن أبي فروة عن محمد بن يوسف مولى عثمان بن عفان عن أبيه

عن عثمان بن عفان قال

قال رسول الله ﷺ من أدركه الأذان في المسجد ثم خرج لم يخرج لحاجة وهو لا يريد الرجعة فهو منافق

ابن ماجه 734ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Adhan and the sunnah regarding it
Chapter
If the adhan is called while you are in the masjid, do not leave
Numbering
Darussalam 734
Ibn Majah 734