Sahih Muslim #5080 · The Book of Sacrifices

Sahih MuslimAnas b. Malik reported that Allah's Messenger
Sahih Muslim · Book 35 · The Book of Sacrifices
Sahih Muslim · كتاب 35 · كتاب الأضاحي
He who slaughtered the animal before prayer should slaughter (another animal as a sacrifice). The rest of the hadith is the same.
حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ الْغُبَرِيُّ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، حَدَّثَنَا أَيُّوبُ، وَهِشَامٌ، عَنْ مُحَمَّدٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم صَلَّى ثُمَّ خَطَبَ فَأَمَرَ مَنْ كَانَ ذَبَحَ قَبْلَ الصَّلاَةِ أَنْ يُعِيدَ ذِبْحًا ثُمَّ ذَكَرَ بِمِثْلِ حَدِيثِ ابْنِ عُلَيَّةَ ‏.‏
Reference : Sahih Muslim 5080In-book reference : Book 35, Hadith 17