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: “No razor shall pass.” R’ Yochanan said in the name of R’ Yishmael: Halakhah uproots the plain verse. The Torah said “with a razor,” yet the received law forbids with any instrument.
A / D — Semantic or conceptual inference
Although the verse specifies a razor, the received halakhah expands the prohibition to any means of hair removal.