[Machine] The following translation is adapted from Sahih Muslim (Hadith 1332):
The Messenger of Allah ﷺ was asked on the day of sacrifice about a man who had shaved his head before throwing stones or sacrificing or slaughtering. And similar questions were asked about the order of actions. The Messenger of Allah ﷺ said, "There is no harm, there is no harm."
أَنَّ رَسُولَ اللهِ ﷺ سُئِلَ يَوْمَ النَّحْرِ عَنْ رَجُلٍ حَلَقَ قَبْلَ أَنْ يَرْمِيَ أَوْ نَحَرَ أَوْ ذَبَحَ وَأَشْبَاهِ هَذَا فِي التَّقْدِيمِ وَالتَّأْخِيرِ فَقَالَ رَسُولُ اللهِ ﷺ لَا حَرَجَ لَا حَرَجَ