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.
bayhaqi:8704Abū Ṭāhir al-Faqīh And ʾAbū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās al-Aṣam > Muḥammad b. Isḥāq al-Ṣaghānī > Abū Nuʿaym > Sayf > Mujāhid > ʿAbd al-Raḥman b. Abū Laylá > Kaʿb b. ʿUjrah > Waqaf

[Machine] The Messenger of Allah ﷺ stood beside me in Hudaybiyah while I had lice on my head. He asked, "Do your lice bother you?" I replied, "Yes, O Messenger of Allah." He said, "Shave your head." He also mentioned the verse starting with "So whoever among you is ill or has an ailment in his scalp" until the end of the verse. Then the Messenger of Allah ﷺ said, "Fast for three days, or give charity or offer sacrifice as compensation."  

البيهقي:٨٧٠٤وَهُوَ مَا أَخْبَرَنَا أَبُو طَاهِرٍ الْفَقِيهُ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو قَالَا ثنا أَبُو الْعَبَّاسِ الْأَصَمُّ ثنا مُحَمَّدُ بْنُ إِسْحَاقَ الصَّغَانِيُّ ثنا أَبُو نُعَيْمٍ ثنا سَيْفٌ ثنا مُجَاهِدٌ حَدَّثَنِي عَبْدُ الرَّحْمَنِ بْنُ أَبِي لَيْلَى أَنَّ كَعْبَ بْنَ عُجْرَةَ ؓ حَدَّثَهُ

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

رَوَاهُ الْبُخَارِيُّ عَنْ أَبِي نُعَيْمٍ وَأَخْرَجَهُ مُسْلِمٌ مِنْ وَجْهٍ آخَرَ فَثَبَتَ بِهَذَا نُزُولُ قَوْلِهِ ﷻ {وَأَتَمُّوا الْحَجَّ وَالْعُمْرَةَ لِلَّهِ} [البقرة 196] إِلَى آخِرِهِ زَمَنَ الْحُدَيْبِيَةِ وَرُوِّينَا عَنِ ابْنِ مَسْعُودٍ وَغَيْرِهِ أَنَّهُ قَالَ فِي قَوْلِهِ {وَأَتِمُّوا الْحَجَّ وَالْعُمْرَةَ لِلَّهِ} [البقرة 196] أَقِيمُوا الْحَجَّ وَالْعُمْرَةَ لِلَّهِ ﷻ وَعَنْ عَلِيٍّ ؓ تَمَامُ الْحَجِّ أَنْ تُحْرِمَ مِنْ دُوَيْرَةِ أَهْلِكَ

See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:4097Muḥammad b. ʿAbd al-Aʿlá > Muʿtamir > Sayf a man from Ahl Makkah > Mujāhid > ʿAbd al-Raḥman b. Abū Laylá > Kaʿb

Messenger of Allah ﷺ stood beside me at Al-Hudaibiya and the lice were falling from my head in great number. He asked me, "Have your lice troubled you?" I replied in the affirmative. He ordered me to get my head shaved. Kaʿb added, "This Holy Verse:--'And if any of you is ill, or has ailment in his scalp (2.196), etc. was revealed regarding me. "The Prophet ﷺ then ordered me either to fast three days, or to feed six poor persons with one Faraq (three Sas) (of dates), or to slaughter a sheep, etc. (sacrifice) whatever was available. (Using translation from Bukhārī 1815)   

الكبرى للنسائي:٤٠٩٧أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الْأَعْلَى قَالَ حَدَّثَنَا مُعْتَمِرٌ قَالَ سَمِعْتُ سَيْفًا رَجُلًا مِنْ أَهْلِ مَكَّةَ يُحَدِّثُ عَنْ مُجَاهِدٍ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى أَنَّ كَعْبًا حَدَّثَهُ

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