Sahih Muslim Book 7, Hadith Number 3003.

Chapter : Regarding one who shaves before offering the sacrifice or offers sacrifice before throwing (the stones at Jamra).

Ibn Abbas (Allah be pleased with them) reported that it was said to Allah’s Apostle (may peace be upon him) about sacrificing of animals, shaving of one’s head, throwing of pebbles, and (the order of) precedence and succession, and he said: There is no harm in it.