Kaab bin Ujra reported,

He was with the Messenger of Allah ﷺ in the state of ihram when lice troubled him in his head. The Messenger of Allah ﷺ ordered him to shave his head and said, "Fast three days, or feed six poor people two mudds each, or sacrifice a sheep. Whichever of these you do will suffice for you."

Nasai 2854

Sahih

أخبرنا محمد بن سلمة والحارث بن مسكين قراءة عليه وأنا أسمع عن ابن القاسم قال حدثني مالك عن عبد الكريم بن مالك الجزري عن مجاهد عن عبد الرحمن بن أبي ليلى

عن كعب بن عجرة

أنه كان مع رسول الله ﷺ محرما فآذاه القمل في رأسه فأمره رسول الله ﷺ أن يحلق رأسه وقال صم ثلاثة أيام أو أطعم ستة مساكين مدين مدين أو انسك شاة أي ذلك فعلت أجزأ عنك

النسائي 2854صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Rituals of Hajj
Chapter
One in ihram who is bothered by lice in his head
Numbering
Darussalam 2854
Nasai 2854