Muqatil says that they asked Anas bin Malik (may Allah be pleased with him) about people who had shaved their heads before sacrificing, and he said: You have gone against the Sunnah, but there is no penalty upon you.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9632