Jundab bin Sufyan reported,

We offered the sacrifice with the Messenger of Allah ﷺ one day, and there were people who had slaughtered their sacrifices before the prayer. When the Prophet ﷺ finished, he saw that they had slaughtered before the prayer, so he said, "Whoever slaughtered before the prayer must slaughter another in its place, and whoever has not yet slaughtered until we prayed should slaughter in the name of Allah."

Bukhari 5500

Sahih

حدثنا قتيبة حدثنا أبو عوانة عن الأسود بن قيس

عن جندب بن سفيان البجلي قال

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

البخاري 5500صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Slaughter and hunting
Chapter
Prophet's ﷺ saying, "Let him slaughter in the name of Allah"
Numbering
Darussalam 5500
Bukhari 5500