There is no blame on the one who shaved his head before stoning the Jamarat, or slaughtered the animal, or went to the Bayt Allah (the House of Allah)
➊ It is narrated from Abdullah bin Amr (may Allah be pleased with him) that the Messenger of Allah ﷺ stood at a certain place during the Farewell Pilgrimage. The Companions began to ask him ﷺ questions. One said: I did not know, and I had my head shaved before slaughtering. The Prophet ﷺ said to him:
اذبح ولا حرج
“Slaughter, there is no harm.”
And another man said: I did not know, and I slaughtered before stoning. The Prophet ﷺ said:
ارم ولا حرج
“Stone now, there is no harm.”
(Abdullah bin Amr (may Allah be pleased with him) said:
فما سئل يومئذ عن شيئ قدم ولا أخر إلا قال ، افعل ولا حرج
“On that day, whenever he ﷺ was asked about any act that had been put earlier or later, he ﷺ said just this: Go and do it now, there is no harm.”
➋ In the narration of Ibn Abbas (may Allah be pleased with them both): “The Prophet ﷺ was asked about slaughtering, shaving the head, stoning, and putting some of them earlier or later, and he ﷺ said:
لا حرج
“There is no harm.”
➌ In one narration of Jami’ al-Tirmidhi, these are the words:
إنى أفضت قبل أن أحلق
“(A Companion said:) I performed the Tawaf al-Ifadah before shaving my head (and the Prophet ﷺ said: There is no harm).”