وَحَدَّثَنِي عُبَيْدُ اللَّهِ بْنُ عُمَرَ الْقَوَارِيرِيُّ، حَدَّثَنَا حَمَّادٌ، - يَعْنِي ابْنَ زَيْدٍ - عَنْ أَيُّوبَ، ح وَحَدَّثَنِي أَبُو الرَّبِيعِ، حَدَّثَنَا حَمَّادٌ، حَدَّثَنَا أَيُّوبُ، قَالَ سَمِعْتُ مُجَاهِدًا، يُحَدِّثُ عَنْ عَبْدِ الرَّحْمَنِ، بْنِ أَبِي لَيْلَى عَنْ كَعْبِ بْنِ عُجْرَةَ، - رضى الله عنه - قَالَ أَتَى عَلَىَّ رَسُولُ اللَّهِ صلى الله عليه وسلم زَمَنَ الْحُدَيْبِيَةِ وَأَنَا أُوقِدُ تَحْتَ - قَالَ الْقْوَارِيرِيُّ قِدْرٍ لِي ‏.‏ وَقَالَ أَبُو الرَّبِيعِ بُرْمَةٍ لِي - وَالْقَمْلُ يَتَنَاثَرُ عَلَى وَجْهِي فَقَالَ ‏"‏ أَيُؤْذِيكَ هَوَامُّ رَأْسِكَ ‏"‏ ‏.‏ قَالَ قُلْتُ نَعَمْ ‏.‏ قَالَ ‏"‏ فَاحْلِقْ وَصُمْ ثَلاَثَةَ أَيَّامٍ أَوْ أَطْعِمْ سِتَّةَ مَسَاكِينَ أَوِ انْسُكْ نَسِيكَةً ‏"‏ ‏.‏ قَالَ أَيُّوبُ فَلاَ أَدْرِي بِأَىِّ ذَلِكَ بَدَأَ ‏.‏
Translation
Abdullah b. Ma'qil said

I sat with Ka'b (Allah be pleased with him) and he was in the mosque. I asked him about this verse:" Compensation in (the form of) fasting, or Sadaqa or sacrifice." Ka'b (Allah be pleased with him) said: It was reveal- ed In my case. There was some trouble in my head. I was taken to the Messenger of Allah (ﷺ) and lice were creeping upon my face. Thereupon he said: I did not think that your trouble had become so unbearable as I see. Would you be able to afford (the sacrificing) of a goat? I (Ka'b) said: Then this verse was revealed:" Com- pensation (in the form of) fasting or alms or a sacrifice." He (the Holy Prophet) said: (It Implies) fasting for three days, or feeding six needy perscins, half sa' of food for every needy person. This verse was revealed particularly for me and (now) Its applica- tion is general for all of you.