The Messenger of Allah ﷺ said, "On Friday, the angels come to the doors of the mosque and record people according to their ranks. So-and-so came at such-and-such an hour."Hammad said, "I think he mentioned five categories. So-and-so came while the imam was delivering the sermon, and so-and-so came and caught the prayer but missed the Friday gathering," or he said, "missed the sermon."
حدثنا بهز قال حدثنا حماد قال أخبرنا علي بن زيد عن أوس بن خالد
أن رسول الله ﷺ قال إن الملائكة يوم الجمعة يأتون على أبواب المسجد يكتبون الناس على منازلهم جاء فلان من ساعة كذا قال حماد أظنه قال خمس مرار جاء فلان والإمام يخطب وجاء فلان فأدرك الصلاة ولم يدرك الجمعة أو لم يدرك الخطبة