Sahih al-Bukhari 976
صحيح البخاري#976SahihNarrated Al-Bara':The Prophet (ﷺ) went towards Al-Baqi (the graveyard at Medina) on the day of Id-ul-Adha and offered a two-rak`at prayer (of `Id-ul-Adha) and then faced us and said, "On this day of ours, our first act of worship is the offering of prayer and then we will return and slaughter the sacrifice, and whoever does this concords with our Sunna; and whoever slaughtered his sacrifice before that (i.e. before the prayer) then that was a thing which he prepared earlier for his family and it would not be considered as a Nusuk (sacrifice.)" A man stood up and said, "O, Allah's Messenger (ﷺ)! I slaughtered (the animal before the prayer) but I have a young she-goat which is better than an older sheep." The Prophet (ﷺ) said to him, "Slaughter it. But a similar sacrifice will not be sufficient for anybody else after you
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih al-Bukhari is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 13:25