Sacrificing before shaving the head
The Prophet ﷺ himself sacrificed before shaving his head, and he also commanded the Companions to do so, as narrated from Miswar bin Makhramah (may Allah be pleased with him):
أن رسول الله صلى الله عليه وسلم نحر قبل أن يحلق وأمر أصحابه بذلك
“The Messenger of Allah ﷺ sacrificed before shaving his head, and he also commanded his Companions to do this.”
Reference: Bukhari: 1711, Kitab al-Umrah: Bab al-Nahr qabl al-Halq fi al-Hasr
Although this hadith relates to the occasion of the Umrah of Hudaybiyyah, the sunnah order in Hajj is also the same, as Shaykh al-Albani (may Allah have mercy on him) has established.
Reference: Hajjat al-Nabi by al-Albani: p. 85