Sunan Ibn Majah, Book 26, Hadith 32 (Ibn Majah 3153)

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.