It was narrated from Anas bin Malik that a man slaughtered on the Day of Sacrifice, (meaning) before the ‘Eid prayer, and the Prophet (ﷺ) ordered him to do it again.
Sunan Ibn Majah Book 26, Hadith 32