(12) باب مَنْ ذَبَحَ قَبْلَ الصَّلاَةِ أَعَادَ
Narrated Jundab bin Sufyan Al-Bajali:
I witnessed the Prophet (ﷺ) on the Day of Nahr. He said, "Whoever slaughtered the sacrifice before offering the `Id prayer, should slaughter another sacrifice in its place; and whoever has not slaughtered their sacrifice yet, should slaughter now."
Reference: Sahih al-Bukhari 5562
In-book reference: Book 73, Hadith 18
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 68, Hadith 469