Narrated Abu Huraira (Radi-Allahu ‘anhu):
The Prophet (Sallallahu ‘Alaihi Wa Sallam) said, “On every Friday the angels take their stand at every gate to the masjid to write the names of the people chronologically (i.e. according to the time of their arrival for the Friday prayer) and when the Imam sits (on the pulpit) they fold up their scrolls and get ready to listen to the sermon.”
Bukhari Vol. 4 : No. 433