كتاب الحج
20  
Hajj

Yahya related to me from Malik from Nafi that Abdullah ibn Umar would never wash his head while he was in ihram except if he had to do ghusl because of a wet dream.

Malik said, "I have heard the people of knowledge say that there is no harm in someone who is in ihram rubbing his head with certain kinds of plants after he has stoned the Jamrat al-Aqaba but before he has shaved his head, because once he has finished stoning the Jamrat al-Aqaba it is halal for him to kill lice, to shave his head, to clean himself of body hair, and to wear normal clothes."

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ نَافِعٍ، أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ، كَانَ لاَ يَغْسِلُ رَأْسَهُ وَهُوَ مُحْرِمٌ إِلاَّ مِنَ الاِحْتِلاَمِ ‏.‏ قَالَ مَالِكٌ سَمِعْتُ أَهْلَ الْعِلْمِ يَقُولُونَ لاَ بَأْسَ أَنْ يَغْسِلَ الرَّجُلُ الْمُحْرِمُ رَأْسَهُ بِالْغَسُولِ بَعْدَ أَنْ يَرْمِيَ جَمْرَةَ الْعَقَبَةِ وَقَبْلَ أَنْ يَحْلِقَ رَأْسَهُ وَذَلِكَ أَنَّهُ إِذَا رَمَى جَمْرَةَ الْعَقَبَةِ فَقَدْ حَلَّ لَهُ قَتْلُ الْقَمْلِ وَحَلْقُ الشَّعْرِ وَإِلْقَاءُ التَّفَثِ وَلُبْسُ الثِّيَابِ ‏.‏
USC-MSA web (English) reference : Book 20, Hadith 7
Arabic reference : Book 20, Hadith 714