Bara bin Azib reported,

The Messenger of Allah ﷺ addressed us on the Day of Sacrifice after the prayer and said, "Whoever performs our prayer and offers our sacrifice has carried out the rite correctly. But whoever sacrifices before the prayer, that is merely a sheep slaughtered for meat."Abu Burda bin Niyar stood up and said, "Messenger of Allah, by Allah, I sacrificed before going out to the prayer. I knew that today is a day of eating and drinking, so I hurried, and I ate and fed my family and my neighbors."The Messenger of Allah ﷺ replied, "That is merely a sheep for meat."Abu Burda said, "I have a young she-goat that is better than two sheep for meat. Will it suffice on my behalf?"He answered, "Yes, but it will not suffice for anyone after you."

Bukhari 983

Sahih

حدثنا مسدد قال حدثنا أبو الأحوص قال حدثنا منصور بن المعتمر عن الشعبي

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

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

البخاري 983صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Two Eids
Chapter
Speech of the imam and the people during the Eid sermon, and if the imam is asked about something while he is delivering the sermon
Numbering
Darussalam 983
Bukhari 983