Abu Hurairah reported,

I entered the mosque with him on Friday and he saw a young boy, so he said to him, "Boy, go and play."The boy replied, "I have only come to the mosque."He said again, "Boy, go and play."The boy replied, "I have only come to the mosque."He asked, "Will you sit until the imam comes out?"The boy answered, "Yes."He said, "I heard the Messenger of Allah ﷺ say, 'The angels come on Friday and sit at the doors of the mosque, recording those who arrive first, second, and third, ranking the people according to their positions, until the imam comes out. When the imam comes out, the records are folded up.'"

Ahmad 10271

Sahih

حدثنا يونس قال حدثنا الخزرج عن أبي أيوب

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

دخلت معه المسجد يوم الجمعة فرأى غلاما فقال له يا غلام اذهب العب قال إنما جئت إلى المسجد قال يا غلام اذهب العب قال إنما جئت إلى المسجد قال فتقعد حتى يخرج الإمام قال نعم قال سمعت رسول الله ﷺ يقول إن الملائكة تجيء يوم الجمعة فتقعد على أبواب المسجد فيكتبون السابق والثاني والثالث والناس على منازلهم حتى يخرج الإمام فإذا خرج الإمام طويت الصحف

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