Numbers 6:5-9

ISV(i) 5 During the entire time of his dedication, he is not to allow a razor to pass over his head until the days of his holy consecration to the LORD have been fulfilled. He is to let the locks on his head grow long.
6 “During the entire time of his dedication, he is not to come near a dead body. 7 He is not to defile himself on account of his father, mother, brother, and sister when they die, because the crown of his consecration to God is on his head. 8 During the entire time of his dedication, he is set apart to God. 9 When someone suddenly dies beside him, so that his consecrated head is defiled, then he is to shave his head on the day of his purification. Seven days later he is to shave it again.