Parshas Naso · Passuk 6:5
Throughout the term of their vow as nazirite, no razor shall touch their head; it shall remain consecrated until the completion of their term as nazirite of the LORD, the hair of their head being left to grow untrimmed.
Torah Temimah points to Nazir (verified).
English: “He shall be holy.” Why is this said? Because it says “the Nazir shall shave at the entrance of the Tent of Meeting” — I only have one who shaves in fulfillment of the mitzvah that his hair is forbidden. Whence if bandits shaved him? Scripture says “he shall be holy” — in any case.
A / D — Semantic or conceptual inference
Even hair removed against the Nazir’s will remains forbidden (and retains its sanctity).