Bara bin Azib reported,

The Prophet ﷺ delivered a sermon to us on the day of Eid al-Adha after the prayer and said, "Whoever prays our prayer and performs our sacrifice has performed the sacrifice correctly. But whoever sacrifices before the prayer, that is just slaughter before the prayer, and there is no sacrifice for him."Abu Burda bin Niyar, the maternal uncle of al-Bara, said, "Messenger of Allah, I sacrificed my sheep before the prayer. I knew that today is a day of eating and drinking, and I wanted my sheep to be the first thing slaughtered in my house, so I slaughtered my sheep and ate breakfast before coming to the prayer."The Prophet ﷺ replied, "Your sheep is just a sheep for meat."Abu Burda said, "Messenger of Allah, we have a young she-goat that is dearer to me than two sheep. Will it suffice for me?"He answered, "Yes, but it will not suffice for anyone after you."

Azami 7208

Sahih

عن البراء بن عازب قال

خطبنا النبي ﷺ يوم الأضحى بعد الصلاة، فقال: من صلى صلاتنا، ونسك نسكنا، فقد أصاب النسك، ومن نسك قبل الصلاة، فإنه قبل الصلاة، ولا نسك له. فقال أبو بردة بن نيار خال البراء: يا رسول الله فإني نسكت شاتي قبل الصلاة، وعرفت أن اليوم يوم أكل وشرب، وأحببت أن تكون شاتي أول ما يذبح في بيتي، فذبحت شاتي، وتغديت قبل أن آتي الصلاة، قال: شأتك شاة لحم. قال: يا رسول الله، فإن عندنا عناقا لنا جزعة، هي أحب إلي من شاتين، أفتجزي عني؟ قال: نعم، ولن تجزي عن أحد بعدك.

الأعظمي 7208صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sacrificial animals
Section
Not eating on the day of sacrifice until he prays
Numbering
Jami al-Kamil 7208 (2nd edition)
Azami 7208