1שהזהיר המלך מהרבות נשים. והוא אמרו לא ירבה לו נשים. וגבול זה שלא יוסיף על שמונה עשרה נשים בכתובה וקדושין. וכבר התבארו משפטי מצוה זו בשני מסנהדרין. (שם, שם):
That He prohibited the king from having many wives. And that is His saying, "he may not have many wives" (Deuteronomy 17:17). And the limit on this is that he not surpass eighteen wives with a contract (ketubah) and marriage (kiddushin). And the regulations of this commandment have already been explained in the second [chapter] of Sanhedrin. (See Parashat Shoftim; Mishneh Torah, Kings and Wars 3.)
The Rambam's count of the 613 mitzvos. English: Rabbi Francis Nataf, Sefaria 2021 (CC-BY). Hebrew: Warsaw 1883. Via Sefaria. All the library · Jer’s Torah Page