Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Are the lice of your head troubling you?" I said: "Yes!" He (peace and blessings be upon him) said: "Shave your head, and fast three days, or feed six poor people, or sacrifice a goat."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9091
Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) said that he was with the Messenger of Allah (peace and blessings be upon him) in the state of ihram and lice were troubling him in his head. The Messenger of Allah (peace and blessings be upon him) ordered him to shave his head and said: "Fast three days, or feed six poor people, a mudd of barley for each poor person, or sacrifice a goat; whichever of these you do will suffice for you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9092
Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) said that when they were at al-Hudaybiyah, before entering Makkah, the Messenger of Allah (peace and blessings be upon him) passed by him while he was lighting a fire under his cooking pot, and lice were falling onto his face. He (peace and blessings be upon him) said: "Are these lice of yours troubling you?" I said: "Yes!" He (peace and blessings be upon him) said: "Then shave your head and feed one faraq to six poor people" - and a faraq is three sa' - "or fast three days, or offer a sacrifice."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9093
Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) passed by him in the year of al-Hudaybiyah and said: "Are the lice of your head troubling you?" He said: "Yes." So he (peace and blessings be upon him) said: "Shave, then offer a sacrifice, or fast three days, or feed three sa' of dates to six poor people."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9094
Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) said: Lice infested my head until I feared for my eyesight, and I was with the Messenger of Allah (peace and blessings be upon him) in the year of al-Hudaybiyah. Allah Almighty revealed this verse concerning me: "And whoever among you is ill or has an ailment of the head" [Surah al-Baqarah: 196]. Then the Prophet (peace and blessings be upon him) called me and said: "Shave your head, and fast three days, or feed six poor people a faraq of raisins, or slaughter a goat." So I had my head shaved and then slaughtered a goat.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9095
Abdullah bin Ma'qil (may Allah have mercy on him) said: I sat with Ka'b bin Ujrah (may Allah be pleased with him) in the mosque of Kufah and asked him about the saying of Allah Almighty: "Then a ransom of fasting, or charity, or a sacrifice" [Surah al-Baqarah: 196]. He said: I was carried to the Messenger of Allah (peace and blessings be upon him) while lice were falling onto my face. He (peace and blessings be upon him) said: "I did not know that your hardship had reached this extent. Can you find a goat?" I said: "No." He (peace and blessings be upon him) said: "Fast three days, or feed six poor people, half a sa' for each poor person, and shave your head." Ka'b (may Allah be pleased with him) said: This verse was revealed specifically concerning me, and now it is general for all of you.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9096