Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: A man came to the Prophet (peace and blessings be upon him) and said: I slaughtered (my sacrifice) before stoning. He (peace and blessings be upon him) said: "Stone, and there is no harm." He said: I shaved my head before stoning. He (peace and blessings be upon him) said: "Stone, and there is no harm."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12429