Abu Shatha reported,

We were sitting in the mosque with Abu Hurairah when the muezzin gave the call to prayer. A man stood up and walked out of the mosque. Abu Hurairah followed him with his gaze until he left the mosque, then said, "As for this man, he has disobeyed Abu Qasim ﷺ."

Ibn Majah 733

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو الأحوص عن إبراهيم بن مهاجر

عن أبي الشعثاء قال

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

ابن ماجه 733صحيح
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 733
Ibn Majah 733