حَدَّثَنَا أَحْمَدُ بْنُ عَبْدِ الْوَهَّابِ، ثنا أَبُو الْمُغِيرَةِ، ثنا عُفَيْرُ بْنُ مَعْدَانَ، عَنْ سُلَيْمِ بْنِ عَامِرٍ، عَنْ أَبِي أُمَامَةَ قَالَ: قَالَ رَسُولُ اللهِ صَلَّى الله عَلَيْهِ وَسَلَّمْ: «تُبْعَثُ الْمَلَائِكَةُ يَوْمَ الْجُمُعَةِ إِلَى أَبْوَابِ الْمَسْجِدِ، فَيَكْتُبُونَ الْأَوَّلَ فَالْأَوَّلَ، فَإِذَا صَعِدَ الْإِمَامُ عَلَى الْمِنْبَرِ طُوِيَتِ الصُّحُفُ»
It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "On Friday the angels are sent to the doors of the mosque, and they keep writing down the names of those who come, the first and then the next; then when the imam ascends the pulpit, the registers are rolled up."