Abu Khayr reported,

A man from the Ansar reported that some people in Medina heard a loud commotion on the day of Adha and assumed that the Messenger of Allah ﷺ had already performed the prayer, so they slaughtered their sacrifices. They sent a man to the Messenger of Allah ﷺ, who found him having laid his sacrificial animal on its side, about to slaughter it.The Messenger of Allah ﷺ said, "Help me with my sacrifice."So the man assisted him, then said, "Messenger of Allah, some people thought you had already prayed and slaughtered their sacrifices. What is your view on that?"He replied, "Let them buy other animals and slaughter them in their place."

Azami 7195

Sahih

عن أبي الخير

أن رجلا من الأنصار حدثه أن ناسا سمعوا رجة بالمدينة يوم الأضحى، فظنوا أن رسول الله ﷺ قد صلى فذبحوا، فأرسلوا رجلا إلى رسول الله ﷺ فوجدوا رسول الله ﷺ قد أضجع أضحيته يذبحها فقال رسول الله ﷺ: أعني على أضحيتي فأعانه، ثم قال له يا رسول الله ﷺ: إن ناسا ظنوا أنك قد صليت فذبحوا ضحاياهم فما ترى في ذلك؟ قال: فليشتروا غيرها ثم ليذبحوها.

الأعظمي 7195صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sacrificial animals
Section
Whoever slaughtered before the prayer should slaughter another in its place
Numbering
Jami al-Kamil 7195 (2nd edition)
Azami 7195