Sahih al-Bukhari 1817
Narrated `Abdur-Rahman bin Abu Layla:
(Reporting the speech of Ka`b bin Umra) Allah's Messenger (ﷺ) saw him (i.e. Ka`b) while the lice were 
falling on his face. He asked (him), "Have your lice troubled you?" He replied in the affirmative. So, 
he ordered him to get his head shaved while he was at Al-Hudaibiya. At that time they were not 
permitted to finish their Ihram, and were still hoping to enter Mecca. So, Allah revealed the verses of 
Al-Fidya. Allah's Messenger (ﷺ) ordered him to feed six poor persons with one Faraq of food or to slaughter 
one sheep (as a sacrifice) or to fast for three days.
حَدَّثَنَا إِسْحَاقُ، حَدَّثَنَا رَوْحٌ، حَدَّثَنَا شِبْلٌ، عَنِ ابْنِ أَبِي نَجِيحٍ، عَنْ مُجَاهِدٍ، قَالَ حَدَّثَنِي عَبْدُ الرَّحْمَنِ بْنُ أَبِي لَيْلَى، عَنْ كَعْبِ بْنِ عُجْرَةَ ـ رضى الله عنه ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم رَآهُ وَأَنَّهُ يَسْقُطُ عَلَى وَجْهِهِ فَقَالَ ‏
"‏ أَيُؤْذِيكَ هَوَامُّكَ ‏"‏‏.‏ قَالَ نَعَمْ‏.‏ فَأَمَرَهُ أَنْ يَحْلِقَ وَهُوَ بِالْحُدَيْبِيَةِ، وَلَمْ يَتَبَيَّنْ لَهُمْ أَنَّهُمْ يَحِلُّونَ بِهَا، وَهُمْ عَلَى طَمَعٍ أَنْ يَدْخُلُوا مَكَّةَ، فَأَنْزَلَ اللَّهُ الْفِدْيَةَ، فَأَمَرَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ يُطْعِمَ فَرَقًا بَيْنَ سِتَّةٍ، أَوْ يُهْدِيَ شَاةً، أَوْ يَصُومَ ثَلاَثَةَ أَيَّامٍ‏.‏