حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ أَيُّوبَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ مَا سُئِلَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ عَمَّنْ قَدَّمَ شَيْئًا قَبْلَ شَىْءٍ إِلاَّ يُلْقِي بِيَدَيْهِ كِلْتَيْهِمَا ‏"‏ لاَ حَرَجَ ‏"‏ ‏.‏
Translation
It wasnarrated from ‘Abdullah bin ‘Amr that the Prophet (ﷺ) wasaskedabout a man who slaughtered his sacrifice before shaving hishead, orwho shaved his head before slaughtering his sacrifice, and hesaid

“There is no harm in that.”