Bara bin Azib reported,

The Prophet ﷺ addressed us on the day of Adha after the prayer and said, "Whoever prayed our prayer and offered the sacrifice as we did has performed the rite correctly. Whoever sacrificed before the prayer, that was done before the prayer and counts as no sacrifice at all."Abu Burda bin Niyar, the maternal uncle of 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 it and ate breakfast before coming to the prayer."The Prophet ﷺ replied, "Your sheep is merely a sheep for meat."Abu Burda said, "Messenger of Allah, we have a young she-goat in its second year that is dearer to me than two sheep. Will it suffice on my behalf?"He answered, "Yes, but it will not suffice for anyone after you."

Bukhari 955

Sahih

حدثنا عثمان قال حدثنا جرير عن منصور عن الشعبي

عن البراء بن عازب رضي الله عنهما قال

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

البخاري 955صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Two Eids
Chapter
Eating on the day of sacrifice
Numbering
Darussalam 955
Bukhari 955