The Messenger of Allah ﷺ addressed us on the Day of Sacrifice after the prayer and said, "Whoever performed our prayer and offered our sacrifice has carried out the sacrifice correctly. Whoever sacrificed 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, slaughtered, and fed my family and neighbors."The Messenger of Allah ﷺ replied, "That is just a sheep for meat."Abu Burda said, "I have a young she-goat that is better than two sheep of meat. Will it suffice on my behalf?"He answered, "Yes, but it will not suffice for anyone after you."
حدثنا مسدد حدثنا أبو الأحوص حدثنا منصور عن الشعبي
خطبنا رسول الله ﷺ يوم النحر بعد الصلاة فقال من صلى صلاتنا ونسك نسكنا فقد أصاب النسك ومن نسك قبل الصلاة فتلك شاة لحم فقام أبو بردة بن نيار فقال يا رسول الله والله لقد نسكت قبل أن أخرج إلى الصلاة وعرفت أن اليوم يوم أكل وشرب فتعجلت فأكلت وأطعمت أهلي وجيراني فقال رسول الله ﷺ تلك شاة لحم فقال إن عندي عناقا جذعة وهي خير من شاتي لحم فهل تجزئ عني قال نعم ولن تجزئ عن أحد بعدك
Etc. Reference: Bukhari narrated it in the Book of the Two Eids, chapter on the Imam and the people speaking during the sermon of the Eid, hadith 983, from Musaddad, and Muslim narrated it in the Book of Sacrifices, chapter on its time, hadith 1961, from the hadith of Abu Ahwas.