Abdullah bin Maqil reported,

I sat with Kaab bin Ujra in the masjid and asked him about this verse, "then a fidya of fasting, or charity, or a sacrifice" [Baqarah 2:196].Kaab said, "It was revealed about me. I had an ailment in my head, and I was carried to the Messenger of Allah ﷺ with the lice scattering over my face.He said, 'I did not think the hardship had reached you to the extent that I now see. Can you find a sheep?'I said, 'No.'Then this verse was revealed, "then a fidya of fasting, or charity, or a sacrifice" [Baqarah 2:196]."He said, "The fasting is three days, the charity is to six poor people, half a measure of food for each poor person, and the sacrifice is a sheep."

Ibn Majah 3079

Sahih

حدثنا محمد بن بشار ومحمد بن الوليد قالا حدثنا محمد بن جعفر حدثنا شعبة عن عبد الرحمن بن الأصبهاني

عن عبد الله بن معقل قال

قعدت إلى كعب بن عجرة في المسجد فسألته عن هذه الآية {ففدية من صيام أو صدقة أو نسك} قال كعب في أنزلت كان بي أذى من رأسي فحملت إلى رسول الله ﷺ والقمل يتناثر على وجهي فقال ما كنت أرى الجهد بلغ بك ما أرى أتجد شاة قلت لا قال فنزلت هذه الآية {ففدية من صيام أو صدقة أو نسك} قال فالصوم ثلاثة أيام والصدقة على ستة مساكين لكل مسكين نصف صاع من طعام والنسك شاة

ابن ماجه 3079صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rites of pilgrimage
Chapter
Fidya of the one who is prevented
Numbering
Darussalam 3079
Ibn Majah 3079