Somebody said to the Prophet (during his last Hajj), "I did the slaughtering before doing the Rami.' The Prophet ﷺ beckoned with his hand and said, "There is no harm in that." Then another person said. "I got my head shaved before offering the sacrifice." The Prophet ﷺ beckoned with his hand saying, "There is no harm in that."
أَنَّ النَّبِيَّ ﷺ سُئِلَ فِي حَجَّتِهِ فَقَالَ ذَبَحْتُ قَبْلَ أَنْ أَرْمِيَ فَأَوْمَأَ بِيَدِهِ قَالَ وَلاَ حَرَجَ قَالَ حَلَقْتُ قَبْلَ أَنْ أَذْبَحَ فَأَوْمَأَ بِيَدِهِ وَلاَ حَرَجَ