We celebrated Eid al-Adha with the Messenger of Allah ﷺ one day, and the people had already 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 had not slaughtered until we prayed, let him slaughter in the name of Allah ."
أخبرنا قتيبة قال حدثنا أبو عوانة عن الأسود بن قيس
ضحينا مع رسول الله ﷺ أضحى ذات يوم فإذا الناس قد ذبحوا ضحاياهم قبل الصلاة فلما انصرف رآهم النبي ﷺ أنهم ذبحوا قبل الصلاة فقال من ذبح قبل الصلاة فليذبح مكانها أخرى ومن كان لم يذبح حتى صلينا فليذبح على اسم الله عز وجل