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.'"
حدثنا يونس قال حدثنا الخزرج عن أبي أيوب
دخلت معه المسجد يوم الجمعة فرأى غلاما فقال له يا غلام اذهب العب قال إنما جئت إلى المسجد قال يا غلام اذهب العب قال إنما جئت إلى المسجد قال فتقعد حتى يخرج الإمام قال نعم قال سمعت رسول الله ﷺ يقول إن الملائكة تجيء يوم الجمعة فتقعد على أبواب المسجد فيكتبون السابق والثاني والثالث والناس على منازلهم حتى يخرج الإمام فإذا خرج الإمام طويت الصحف
Its isnad is sahih. Bukhari related it in 2/407 no. 929 in the chapter on Jumuah, and in 6/304 no. 3211 in the chapter on the Beginning of Creation, and Muslim in 2/587 no. 850. Khazraj is Ibn Uthman Saadi, whose hadith is acceptable, as stated in the previous hadith.