Language:
كتاب الأضاحي
73
Al-Adha Festival Sacrifice (Adaahi)
(12)
Chapter: Whoever slaughters his sacrifice before the 'Eid prayer should repeat it
(12)
باب مَنْ ذَبَحَ قَبْلَ الصَّلاَةِ أَعَادَ
Sahih al-Bukhari 5562

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 : Vol. 7, Book 68, Hadith 469
  (deprecated numbering scheme)