Allah's Messenger (ﷺ) slaughtered (the Hadi) before he had his head shaved and then he ordered his Companions to do the same.
Sahih al-Bukhari Book 27, Hadith 6