Sahih al-Bukhari 954
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ ذَبَحَ قَبْلَ الصَّلاَةِ فَلْيُعِدْ "
Narrated Anas:
The Prophet (ﷺ) said, "Whoever slaughtered (his sacrifice) before the `Id prayer, should slaughter again." A man stood up and said, "This is the day on which one has desire for meat," and he mentioned something about his neighbors. It seemed that the Prophet (ﷺ) I believed him. Then the same man added, "I have a young she-goat which is dearer to me than the meat of two sheep." The Prophet (ﷺ) permitted him to slaughter it as a sacrifice. I do not know whether that permission was valid only for him or for others as well.
Full reference and source
Sahih al-Bukhari 954 In-book : Book 13, Hadith 6 USC-MSA web (English) : Vol. 2, Book 15, Hadith 74 (deprecated)
View source on Sunnah.com (opens in a new tab)