The Messenger of Allah ﷺ came to me while I was kindling a fire beneath a pot, and lice were falling onto my forehead, or he said onto my eyebrows. He asked, "Are the vermin of your head troubling you?"I said, "Yes."He said, "Then shave your head and offer a sacrifice, or fast three days, or feed six poor people."Ayub said, "I do not know which of them he began with."
حدثنا علي بن حجر أخبرنا إسمعيل بن إبراهيم عن أيوب عن مجاهد عن عبد الرحمن بن أبي ليلى
أتى علي رسول الله ﷺ وأنا أوقد تحت قدر والقمل يتناثر على جبهتي أو قال حاجبي فقال أتؤذيك هوام رأسك قال قلت نعم قال فاحلق رأسك وانسك نسيكة أو صم ثلاثة أيام أو أطعم ستة مساكين قال أيوب لا أدري بأيتهن بدأ
Citation, agreed upon. Bukhari narrated it in the Book of Tafsir, chapter "and he is the most stubborn in dispute" [Baqarah 2:204], no. 4523, from the hadith of Sufyan bin Uyayna, and Muslim, no. 2668, from the hadith of Ibn Jurayj, through the same chain.