It is narrated from Abu Huraira (may Allah be pleased with him) that he said: The Messenger of Allah (peace and blessings be upon him) said: "When it is the day of Friday, at every door of the mosque there are angels. They write down the people in order of their arrival: so-and-so came first, then so-and-so, then so-and-so after him. When the imam comes out for the sermon, the registers are folded up and they also listen to the sermon. The one who comes earliest for the prayer is like one who offers a camel in sacrifice, then the one who comes after him is like one who offers a cow, then the one who comes after him is like one who offers a ram," until he mentioned a chicken and an egg.
Hadith Referenceمسند الإمام الشافعي / كتاب الجمعة / 418
Hadith Takhrijاخرجہ مسلم، الجمعۃ، باب فضل التہجیر یوم الجمعۃ (850)۔