حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ حَوْشَبٍ، حَدَّثَنَا هُشَيْمٌ، أَخْبَرَنَا مَنْصُورٌ، عَنْ عَطَاءٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ سُئِلَ النَّبِيُّ صلى الله عليه وسلم عَمَّنْ حَلَقَ قَبْلَ أَنْ يَذْبَحَ وَنَحْوِهِ‏.‏ فَقَالَ ‏"‏ لاَ حَرَجَ، لاَ حَرَجَ ‏"‏‏.‏
Translation
Narrated Ibn `Abbas

The Prophet (ﷺ) was asked by a man who said, "I have done the Rami in the evening." The Prophet (ﷺ) replied, "There is no harm in it." Another man asked, "I had my head shaved before the slaughtering." The Prophet (ﷺ) replied, "There is no harm in it."