Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When it is the day of Jumuah, angels stand at every gate of the mosque recording the people in the order of their arrival, the first then the next. When the imam comes out, they fold up their scrolls and listen to the sermon. The one who comes earliest to the prayer is like one who offers a camel, then the one after him is like one who offers a cow, then the one after him is like one who offers a ram," until he mentioned the chicken and the egg.Sahl added in his version, "Whoever comes after that has only come to fulfill the duty of the prayer."

Ibn Majah 1092

Sahih

حدثنا هشام بن عمار وسهل بن أبي سهل قالا حدثنا سفيان بن عيينة عن الزهري عن سعيد بن المسيب

عن أبي هريرة

أن رسول الله ﷺ قال إذا كان يوم الجمعة كان على كل باب من أبواب المسجد ملائكة يكتبون الناس على قدر منازلهم الأول فالأول فإذا خرج الإمام طووا الصحف واستمعوا الخطبة فالمهجر إلى الصلاة كالمهدي بدنة ثم الذي يليه كمهدي بقرة ثم الذي يليه كمهدي كبش حتى ذكر الدجاجة والبيضة زاد سهل في حديثه فمن جاء بعد ذلك فإنما يجيء بحق إلى الصلاة

ابن ماجه 1092صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Arriving early for Friday prayer
Numbering
Darussalam 1092
Ibn Majah 1092