Anas bin Malik reported,

The Prophet ﷺ said, "Whoever slaughters before the prayer has only slaughtered for himself, and whoever slaughters after the prayer has completed his rite and followed the practice of the Muslims."

Bukhari 5546

Sahih

حدثنا مسدد حدثنا إسماعيل عن أيوب عن محمد

عن أنس بن مالك رضي الله عنه قال

قال النبي ﷺ من ذبح قبل الصلاة فإنما ذبح لنفسه ومن ذبح بعد الصلاة فقد تم نسكه وأصاب سنة المسلمين

البخاري 5546صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Sacrificial animals
Chapter
Sunnah of udhiya
Numbering
Darussalam 5546
Bukhari 5546