Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:16369ʿAbdān b. Aḥmad > ʿUbaydullāh b. Saʿīd from my uncle from my father > Muḥammad b. Isḥāq > Abān b. Ṣāliḥ > al-Ḥakam b. ʿUtaybah > ʿAbd al-Raḥman b. Abū Laylá > Kaʿb b. ʿUjrah al-Anṣārī Thum Aḥad Banī Sālim

[Machine] I experienced a headache while I was with the Messenger of Allah ﷺ in the year of Hudaybiyah, to the point where I became worried about my eyesight. Then Allah revealed: "So whoever among you is ill or has an ailment of the head [making shaving necessary must offer] a ransom of fasting [three days] or charity or sacrifice." So the Messenger of Allah ﷺ called me and said, "Shave your head and fast for three days, or feed six poor people with raisins or sacrifice a sheep." So I shaved my head and remained silent.  

الطبراني:١٦٣٦٩حَدَّثَنَا عَبْدَانُ بْنُ أَحْمَدَ ثنا عُبَيْدُ اللهِ بْنُ سَعِيدٍ ثنا عَمِّي ثنا أَبِي عَنْ مُحَمَّدِ بْنِ إِسْحَاقَ حَدَّثَنِي أَبَانُ بْنُ صَالِحٍ عَنِ الْحَكَمِ بْنِ عُتَيْبَةَ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى عَنْ كَعْبِ بْنِ عُجْرَةَ الْأَنْصَارِيِّ ثُمَّ أَحَدِ بَنِي سَالِمٍ قَالَ

أَصَابَنِي هَوَامٌّ فِي رَأْسِي وَأَنَا مَعَ رَسُولِ اللهِ ﷺ عَامَ الْحُدَيْبِيَةِ حَتَّى تَخَوَّفْتُ عَلَى بَصَرِي فَأَنْزَلَ اللهُ ﷻ {فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ بِهِ أَذًى مِنْ رَأْسِهِ فَفِدْيَةٌ مِنْ صِيَامٍ أَوْ صَدَقَةٍ أَوْ نُسُكٍ} فَدَعَانِي رَسُولُ اللهِ ﷺ فَقَالَ «احْلِقْ رَأْسَكَ وَصُمْ ثَلَاثَةَ أَيَّامٍ أَوْ أَطْعِمْ سِتَّةَ مَسَاكِينٍ فَرَقًا مِنْ زَبِيبٍ أَوِ انْسُكْ شَاةً» فَحَلَقْتُ رَأْسِي ثُمَّ نَسَكْتُ  


See similar narrations below:

Collected by Muslim, Abū Dāwūd, Bayhaqī
muslim:1201dIbn Numayr from my father > Sayf > Mujāhid > ʿAbd al-Raḥman b. Abū Laylá > Kaʿb b. ʿUjrah

Do these vermins trouble you? I said: Yes. Thereupon he said: Then shave your head; and it was in connection with me that this verse was revealed:" Whoever among you is sick or has an ailment of the head, he (may effect) a compensation by fasting or alms or a sacrifice". He (the Holy Prophet, therefore) said to me: Observe fast for three days or give a quantity of alms enough to feed six needy persons or offer sacrifice (of an animal) that is available.  

مسلم:١٢٠١dوَحَدَّثَنَا ابْنُ نُمَيْرٍ حَدَّثَنَا أَبِي حَدَّثَنَا سَيْفٌ قَالَ سَمِعْتُ مُجَاهِدًا يَقُولُ حَدَّثَنِي عَبْدُ الرَّحْمَنِ بْنُ أَبِي لَيْلَى حَدَّثَنِي كَعْبُ بْنُ عُجْرَةَ ؓ

أَنَّ رَسُولَ اللَّهِ ﷺ وَقَفَ عَلَيْهِ وَرَأْسُهُ يَتَهَافَتُ قَمْلاً فَقَالَ أَيُؤْذِيكَ هَوَامُّكَ قُلْتُ نَعَمْ قَالَ فَاحْلِقْ رَأْسَكَ قَالَ فَفِيَّ نَزَلَتْ هَذِهِ الآيَةُ { فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ بِهِ أَذًى مِنْ رَأْسِهِ فَفِدْيَةٌ مِنْ صِيَامٍ أَوْ صَدَقَةٍ أَوْ نُسُكٍ} فَقَالَ لِي رَسُولُ اللَّهِ ﷺ صُمْ ثَلاَثَةَ أَيَّامٍ أَوْ تَصَدَّقْ بِفَرَقٍ بَيْنَ سِتَّةِ مَسَاكِينَ أَوِ انْسُكْ مَا تَيَسَّرَ  

abudawud:1860Muḥammad b. Manṣūr > Yaʿqūb from my father > Ibn Isḥāq > Abān / Ibn Ṣāliḥ > al-Ḥakam b. ʿUtaybah > ʿAbd al-Raḥman b. Abū Laylá > Kaʿb b. ʿUjrah

Ka’b bin ‘Ujrah said I had lice in my head when I accompanied the Apostle of Allaah ﷺ in the year of Al Hudaibiyyah so much so that I feared about my eyesight. So Allaah, the exalted revealed these verses about me. “And whoever among you is sick or hath an aliment of the head.” The Apostle of Allaah ﷺ called me and said “Shave your head and fast three days or give a faraq of raisins to six poor men or sacrifice a goat. So, I shaved my head and sacrificed.  

أبو داود:١٨٦٠حَدَّثَنَا مُحَمَّدُ بْنُ مَنْصُورٍ حَدَّثَنَا يَعْقُوبُ حَدَّثَنِي أَبِي عَنِ ابْنِ إِسْحَاقَ حَدَّثَنِي أَبَانُ يَعْنِي ابْنَ صَالِحٍ عَنِ الْحَكَمِ بْنِ عُتَيْبَةَ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى عَنْ كَعْبِ بْنِ عُجْرَةَ قَالَ

أَصَابَنِي هَوَامُّ فِي رَأْسِي وَأَنَا مَعَ رَسُولِ اللَّهِ ﷺ عَامَ الْحُدَيْبِيَةِ حَتَّى تَخَوَّفْتُ عَلَى بَصَرِي فَأَنْزَلَ اللَّهُ سُبْحَانَهُ وَتَعَالَى { فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ بِهِ أَذًى مِنْ رَأْسِهِ } الآيَةَ فَدَعَانِي رَسُولُ اللَّهِ ﷺ فَقَالَ لِي احْلِقْ رَأْسَكَ وَصُمْ ثَلاَثَةَ أَيَّامٍ أَوْ أَطْعِمْ سِتَّةَ مَسَاكِينَ فَرَقًا مِنْ زَبِيبٍ أَوِ انْسُكْ شَاةً فَحَلَقْتُ رَأْسِي ثُمَّ نَسَكْتُ  

bayhaqi:9095ʿAbd al-Raḥman b. Abū Laylá > Kaʿb b. ʿUjrah

[Machine] I experienced a severe headache while I was with the Messenger of Allah in the year of Hudaybiyah. I became worried about my eyesight, so Allah revealed to me the verse: "Then whoever among you is ill or has an ailment of the head" (Quran 2:196). The Messenger of Allah called me and advised me to shave my head and fast for three days or feed six poor people, each with a portion of raisins, or sacrifice a sheep. I shaved my head and then remained silent. Abu Ali Al-Rudhbary narrated to us, who told us about Abu Bakr Ibn Dasa, who narrated to us about Abu Dawud, who narrated to us about Muhammad Ibn Mansour, who narrated to us about Ya'qub, who narrated to us from his father, who narrated to us from Ibn Ishaq, who narrated to us from Aban, who means Ibn Salih, who narrated from Al-Hakam Ibn Uyaynah, who mentioned it.  

البيهقي:٩٠٩٥وَرَوَاهُ الْحَكَمُ بْنُ عُيَيْنَةَ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى عَنْ كَعْبِ بْنِ عُجْرَةَ قَالَ

أَصَابَنِي هَوَامُّ فِي رَأْسِي وَأَنَا مَعَ رَسُولِ اللهِ ﷺ عَامَ الْحُدَيْبِيَةِ حَتَّى تَخَوَّفْتُ عَلَى بَصَرِي فَأَنْزَلَ اللهُ ﷻ فِيَّ {فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ بِهِ أَذًى مِنْ رَأْسِهِ} [البقرة 196] الْآيَةَ فَدَعَانِي رَسُولُ اللهِ ﷺ فَقَالَ لِي احْلِقْ رَأْسَكَ وَصُمْ ثَلَاثَةَ أَيَّامٍ أَوْ أَطْعِمْ سِتَّةَ مَسَاكِينَ فَرَقًا مِنْ زَبِيبٍ أَوِ انْسُكْ شَاةً فَحَلَقْتُ رَأْسِي ثُمَّ نَسَكْتُ أَخْبَرَنَاهُ أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ أَبُو بَكْرِ بْنُ دَاسَةَ ثنا أَبُو دَاوُدَ ثنا مُحَمَّدُ بْنُ مَنْصُورٍ ثنا يَعْقُوبُ ثنا أَبِي عَنِ ابْنِ إِسْحَاقَ حَدَّثَنِي أَبَانُ يَعْنِي ابْنَ صَالِحٍ عَنِ الْحَكَمِ بْنِ عُيَيْنَةَ فَذَكَرَهُ