(Imām Bukhārī narrates): Muslim narrated to us, he said: Shu'bah narrated to us from al-Aswad from Jundab, he said: The Prophet ﷺ led the prayer on the day of Nahr, then gave the sermon, then performed the sacrifice, then said: Whoever slaughtered before praying should slaughter another sacrifice in its place, and whoever has not yet slaughtered should slaughter in the name of Allāh.
حَدَّثَنَا مُسْلِمٌ قَالَ حَدَّثَنَا شُعْبَةُ عَنْ الْأَسْوَدِ عَنْ جُنْدَبٍ قَالَ صَلَّى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَوْمَ النَّحْرِ ثُمَّ خَطَبَ ثُمَّ ذَبَحَ فَقَالَ مَنْ ذَبَحَ قَبْلَ أَنْ يُصَلِّيَ فَلْيَذْبَحْ أُخْرَى مَكَانَهَا وَمَنْ لَمْ يَذْبَحْ فَلْيَذْبَحْ بِاسْمِ اللَّهِ
Reference: Sahih Al Bukhari 985