Sahih al-Bukhari 1815
Abu Nu'aim related to us that Saif (bin Sulaiman al-Makki) told us; he said: Mujahid related to me; he said: I heard Abdur Rahman bin Abi Laila say that Hazrat Ka'b bin Ujrah (ra) told him; he said: The Messenger of Allah (saw) stopped by me at Hudaibiyah, and my head was dripping with lice. He said: “Are your lice troubling you?” I said: “Yes.” He said: “Have your head shaved.” Or he said: “Shave it.” Hazrat Ka'b (ra) said: It was about me that this verse was revealed: “And whoever among you is sick or has an ailment of the head, …” (Qur’an 2:197). The Prophet (saw) said: “Fast three days, or distribute one Faraq (three Sa') as charity (Sadaqah) among six (needy people), or offer whatever sacrifice is available.”
AI-translated by Islam-Today
Book 6: The saying of Allah Ta'ala "... Or giving Sadaqa ..." (V.2:196)