صحيح البخاري Sahih Bukhari كتاب المحصر The Book of Al-Muhsar
بَابُ قَوْلِ اللَّهِ تَعَالَى: {فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ بِهِ أَذًى مِنْ رَأْسِهِ فَفِدْيَةٌ مِنْ صِيَامٍ أَوْ صَدَقَةٍ أَوْ نُسُكٍ} وَهُوَ مُخَيَّرٌ، فَأَمَّا الصَّوْمُ فَثَلاَثَةُ أَيَّامٍ:

(5) Chapter. The statement of Allah: "… And whosoever of you is ill or has an ailment in his scalp, (necessitating shaving), he must pay a Fidya (ransom), of either observing Saum (fasts) (three days), or giving Sadaqa (charity - feeding six poor persons), or offer sacrifice (one sheep)...” (V.2:196)

1 hadith
Hadith 1814
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ ، أَخْبَرَنَا مَالِكٌ ، عَنْ حُمَيْدِ بْنِ قَيْسٍ ، عَنْ مُجَاهِدٍ ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى ، عَنْ كَعْبِ بْنِ عُجْرَةَ رَضِيَ اللَّهُ عَنْهُ ، عَنِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، أَنَّهُ قَالَ : " لَعَلَّكَ آذَاكَ هَوَامُّكَ ؟ قَالَ : نَعَمْ يَا رَسُولَ اللَّهِ ، فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ :احْلِقْ رَأْسَكَ ، وَصُمْ ثَلَاثَةَ أَيَّامٍ ، أَوْ أَطْعِمْ سِتَّةَ مَسَاكِينَ ، أَوِ انْسُكْ بِشَاةٍ " .
Narrated `Abdur-Rahman bin Abu Layla: Ka`b bin 'Ujra said that Allah's Apostle said to him (Ka`b), "Perhaps your lice have troubled you?" Ka`b replied, "Yes! O Allah's Apostle." Allah's Apostle said, "Have your head shaved and then either fast three days or feed six poor persons or slaughter one sheep as a sacrifice."
Hadith Reference Sahih Bukhari / The Book of Al-Muhsar / Hadith: 1814
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة