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."
Reference: Sahih al-Bukhari 84 In-book : Book 3, Hadith 26 USC-MSA web (English) : Vol. 1, Book 3, Hadith 84 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.