The Prophet ﷺ was asked about someone who shaved his head before offering the sacrifice, and similar matters, and he replied, "There is no harm, there is no harm."
حدثنا محمد بن عبد الله بن حوشب حدثنا هشيم أخبرنا منصور بن زاذان عن عطاء
سئل النبي ﷺ عمن حلق قبل أن يذبح ونحوه فقال لا حرج لا حرج