Negative commandment · Lo Ta’aseh #44 of 613
Not to shave off our beards entirely, as do the priests of false gods
שלא להשחית כל הזקן כעובדי עבודה זרה
The verse · Vayikra 19:27
לֹא תַקִּפוּ פְּאַת רֹאשְׁכֶם וְלֹא תַשְׁחִית אֵת פְּאַת זְקָנֶךָ
“You shall not round the corners of your heads, neither shalt thou mar the corners of thy beard.”
The Rambam’s words
Not to shave off our beards entirely, as do the priests of false gods, as [Leviticus 19:27] states: "Do not shave the corners of your beard."
שלא להשחית כל הזקן כעובדי עבודה זרה, שנאמר "ולא תשחית, את פאת זקנך" (ויקרא יט,כז).
Who & when
“And [it] is practiced in every place and at all times by males.”
Where in the Mishneh Torah
Hilchot Foreign Worship and Customs of the Nations הלכות עבודה זרה וחוקות הגויים