The Messenger of Allah ﷺ was asked on the Day of Sacrifice about a man who shaved his head before throwing the pebbles, or who slaughtered before another required act, and similar cases involving doing things out of order. The Messenger of Allah ﷺ replied, "No harm, no harm."
حدثنا روح حدثنا هشام عن عطاء
أن رسول الله ﷺ سئل يوم النحر عن رجل حلق قبل أن يرمي أو نحر أو ذبح وأشباه هذا في التقديم والتأخير فقال رسول الله ﷺ لا حرج لا حرج