It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "On Friday the angels stand at the doors of the mosque with registers, writing down the names of the people who come, until when the imam comes out, the registers are rolled up." I said: Is there no Jumu'ah for one who comes after the imam has come out? He said: "Certainly there is, but he will not be included in the merit that is recorded in the registers."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 8054