(12) باب مَنْ ذَبَحَ قَبْلَ الصَّلاَةِ أَعَادَ
Narrated Al-Bara':
One day Allah's Messenger (ﷺ) offered the `Id prayer and said, "Whoever offers our prayer and faces our Qibla should not slaughter the sacrifice till he finishes the `Id prayer." Abu Burda bin Niyar got up and said, "O Allah's Messenger (ﷺ)! I have already done it. The Prophet (ﷺ) said, "That is something you have done before its due time." Abu Burda said, "I have a Jadha'a which is better than two old sheep; shall I slaughter it?" The Prophet (ﷺ) said, "Yes, but it will not be sufficient for anyone after you."
Reference: Sahih al-Bukhari 5563
In-book reference: Book 73, Hadith 19
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 68, Hadith 470