Bara bin Azib reported,

The Prophet ﷺ addressed us on the Day of Sacrifice and said, "The first thing we begin with on this day of ours is to pray, then we return and offer the sacrifice. Whoever does that has followed our practice, and whoever slaughters before the prayer, that is merely meat he has prepared early for his family and has nothing to do with the sacrificial rite."My uncle Abu Burda bin Niyar stood up and said, "Messenger of Allah, I slaughtered before the prayer, but I have a young goat that is better than a mature one."He replied, "Offer it in its place," or he said, "Slaughter it. But a young goat will not suffice for anyone after you."

Bukhari 968

Sahih

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

عن البراء قال

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

البخاري 968صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Two Eids
Chapter
Early attendance at Eid
Numbering
Darussalam 968
Bukhari 968