A man from the Ansar said on the authority of Ka'b ibn Ujrah that he was feeling pain in his head (due to lice); so he shaved his head. The Prophet (ﷺ) ordered him to sacrifice a cow as offering.
Sunan Abi Dawud Book 11, Hadith 139