Sahih al-Bukhari 7400
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ ذَبَحَ قَبْلَ أَنْ يُصَلِّيَ فَلْيَذْبَحْ مَكَانَهَا أُخْرَى، وَمَنْ لَمْ يَذْبَحْ فَلْيَذْبَحْ بِاسْمِ اللَّهِ "
Narrated Jundab:
That he witnessed the Prophet (ﷺ) on the Day of Nahr. The Prophet (ﷺ) offered prayer and then delivered a sermon saying, "Whoever slaughtered his sacrifice before offering prayer, should slaughter another animal in place of the first; and whoever has not yet slaughtered any, should slaughter a sacrifice and mention Allah's Name while doing so."
Full reference and source
Sahih al-Bukhari 7400 In-book : Book 97, Hadith 29 USC-MSA web (English) : Vol. 9, Book 93, Hadith 497 (deprecated)
View source on Sunnah.com (opens in a new tab)