Negative commandment · Lo Ta’aseh #209 of 613
[For a Nazarite] not to shave
שלא יגלח הנזיר
The verse · Bamidbar 6:5
כׇּל־יְמֵי נֶדֶר נִזְרוֹ תַּעַר לֹא־יַעֲבֹר עַל־רֹאשׁוֹ עַד־מְלֹאת הַיָּמִם אֲשֶׁר־יַזִּיר לַה׳ קָדֹשׁ יִהְיֶה גַּדֵּל פֶּרַע שְׂעַר רֹאשׁוֹ
“All the days of the vow of his separation there shall no razor come on his head: until the days are fulfilled, during which he separates himself to the Lord, he shall be holy, and shall let the locks of the hair of his head grow.”
The Rambam’s words
[For a Nazarite] not to shave, as [Numbers 6:5] states: "A razor shall not pass upon his head."
שלא יגלח הנזיר, שנאמר "תער לא יעבור על ראשו" (במדבר ו,ה).
Why · Sefer HaChinuch #373
That the nazirite not shave his hair
“From the root of the commandment, I have already written an introduction at the beginning of the book that there being something in the world of the Holy One, blessed be He, that combines physicality and intellect — and that is Man — was something fitting and necessary for His praise, blessed be He, to come up properly from His creatures; that with this creature, there would not be lacking any possibilities, which we have in our minds to grasp, from His world, etc., as I wrote there.”
Who & when
“And this prohibition is practiced in all places and at all times by males and females, since anyone who accepts naziriteness upon himself — and even in our time — is prohibited from shaving even one hair.”
Where in the Mishneh Torah
Hilchot Nazariteship הלכות נזירות