Leviticus 14:9 "And it shall be on the seventh day, he shall shave all his hair"

A person who has become impure with Tzara'at is commanded to shave his hair in the process of purification.