Negative commandment · Lo Ta’aseh #350 of 613
Not to commit sodomy
שלא לשכב עם זכר
The verse · Vayikra 18:22
וְאֶת־זָכָר לֹא תִשְׁכַּב מִשְׁכְּבֵי אִשָּׁה תּוֹעֵבָה הִוא
“Thou shalt not lie with a man after the manner of a woman: it is abomination.”
The Rambam’s words
Not to commit sodomy, as [Leviticus 18:22] states: "And do not lie with a male...."
שלא לשכב עם זכר, שנאמר "ואת זכר--לא תשכב" (ויקרא יח,כב).
Why · Sefer HaChinuch #209
For a man to not have intercourse with males
“It is from the roots of the commandment [that it is] because G-d, blessed be He, desired the settling of His world that He created. And therefore He commanded that [men] not destroy their seed with male homosexuality.”
Who & when
“And this prohibition is practiced in every place and at all times.”
Where in the Mishneh Torah
Hilchot Forbidden Intercourse הלכות איסורי ביאה