Sunan Ibn Majah, Book 25, Hadith 170 (Ibn Majah 3053)
It was narrated from ‘Abdullah bin ‘Amr that the Prophet (ﷺ) was asked about a man who slaughtered his sacrifice before shaving his head, or who shaved his head before slaughtering his sacrifice, and he said: