Chapter 36: The Book of Sacrifices
Anas b. Malik reported: Allah' s Messenger (ﷺ) addressed us on the day of 'Id al-Adha. He smelt the odour of flesh and he prohibited thern from slaughtering (the animals before the 'Id prayer), saying: He who slaughtered the animals (before the 'Id prayer) should do that again (as it is not valid as a sacrifice).
Sahih Muslim 1962c