Sahih al-Bukhari 4159
Hasan bin Khalaf (Wasiti) narrated to us, he said: Ishaq bin Yusuf told us. He reported from Abu Bishr Warqa' (bin Umar Yashkuri), Abu Bishr from (Abdullah) bin Abi Najih, and Ibn Abi Najih from Mujahid, who said: Abdur Rahman bin Abi Laila told me that it is reported from Hazrat Ka'b bin Ujrah (ra) that the Messenger of Allah (saw) saw him while the lice of his head were falling on his face. He (saw) said: “Are these lice troubling you?” He said: Yes. The Messenger of Allah (saw) said: “Have your head shaved.” And he was at Hudaibiyah at that time. He (saw) had not told them clearly that they would come out of the state of consecration (Ihram) at Hudaibiyah itself, and their wish was to enter Mecca. So Allah the Exalted revealed the command of ransom (fidyah). Therefore the Messenger of Allah (saw) told Hazrat Ka'b (ra) that he should give one faraq of grain to six needy people to eat, or sacrifice a goat, or keep three fasts.
AI-translated by Islam-Today