Kaab bin Ujra reported,

The Prophet ﷺ, when I was suffering from lice, instructed me to shave my head and either fast for three days or feed six poor people, knowing that I had nothing with which to offer a sacrifice.

Ibn Majah 3080

Hasan

حدثنا عبد الرحمن بن إبراهيم حدثنا عبد الله بن نافع عن أسامة بن زيد عن محمد بن كعب

عن كعب بن عجرة قال

أمرني النبي ﷺ حين آذاني القمل أن أحلق رأسي وأصوم ثلاثة أيام أو أطعم ستة مساكين وقد علم أن ليس عندي ما أنسك

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