It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: On the day of Friday, the angels stand at the doors of the mosque and record the ranks of the people, that such-and-such a person came at such-and-such a time, such-and-such a person came at such-and-such a time, such-and-such a person came when the Imam was delivering the sermon, and such-and-such a person came and only got the prayer but did not get the Friday (reward). They write this as long as someone has not missed the sermon.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8523
Hadith Gradingحکم دارالسلام:إسنادہ ضعیف ، له علتان : ضعف علي بن زید ، وجھالة أوس ، وقوله : «جاء فلان و الإمام یخطب» ، ھذا مخالف للمشھور ، انظر ، خ : 3211 ، م : 850