The Rambam · Sefer Shoftim
הלכות מלכים ומלחמות ג׳Kings and Wars 3
Chapter 3 of 12 in Kings and Wars — 10 halachot
Halacha 1א׳
בְּעֵת שֶׁיֵּשֵׁב הַמֶּלֶךְ עַל כִּסֵּא מַלְכוּתוֹ כּוֹתֵב לוֹ סֵפֶר תּוֹרָה לְעַצְמוֹ יֶתֶר עַל הַסֵּפֶר שֶׁהִנִּיחוּ לוֹ אֲבוֹתָיו. וּמַגִּיהוֹ מִסֵּפֶר הָעֲזָרָה עַל פִּי בֵּית דִּין שֶׁל שִׁבְעִים וְאֶחָד. אִם לֹא הִנִּיחוּ לוֹ אֲבוֹתָיו אוֹ שֶׁנֶּאֱבַד כּוֹתֵב שְׁנֵי סִפְרֵי תּוֹרָה. אֶחָד מַנִּיחוֹ בְּבֵית גְּנָזָיו שֶׁהוּא מְצֻוֶּה בּוֹ כְּכָל אֶחָד מִיִּשְׂרָאֵל. וְהַשֵּׁנִי לֹא יָזוּז מִלְּפָנָיו אֶלָּא בְּעֵת שֶׁיִּכָּנֵס לְבֵית הַכִּסֵּא. אוֹ לְבֵית הַמֶּרְחָץ. אוֹ לְמָקוֹם שֶׁאֵין רָאוּי לִקְרִיאָה. יוֹצֵא לַמִּלְחָמָה וְהוּא עִמּוֹ. נִכְנָס וְהוּא עִמּוֹ. יוֹשֵׁב בַּדִּין וְהוּא עִמּוֹ. מֵסֵב וְהוּא כְּנֶגְדּוֹ שֶׁנֶּאֱמַר (דברים יז יט) "וְהָיְתָה עִמּוֹ וְקָרָא בוֹ כָּל יְמֵי חַיָּיו":
At the time when the king is established in his kingdom, he is bound to write a scroll of the law for himself, besides that which his forfathers have left him. This copy is to be corrected by the scroll in the court of the temple, under the superintendence of the great tribunal consisting of seventy-one members. In case his parents left not any copy of the law, then he is obliged to write two copies; the one he puts in his treasury, which copy he is enjoined to possess as well as any other individual of Israel; but the second copy must never be removed from him, except he enters a place which is not fit for reading therein, as a bath, etc. etc. If he go forth to war it must accompany him, when he comes back it must be with him; when he sits in judgment he must have it near him; when he sits down it must be in his front, for it is said: It shall be with him and he shall read therein all the days of his life, (Deut. 17. 19).
Halacha 2ב׳
לֹא יַרְבֶּה לוֹ נָשִׁים. מִפִּי הַשְּׁמוּעָה לָמְדוּ שֶׁהוּא לוֹקֵחַ עַד שְׁמוֹנֶה עֶשְׂרֵה נָשִׁים בֵּין הַנָּשִׁים וּפִלַּגְשִׁים הַכּל שְׁמוֹנֶה עֶשְׂרֵה. וְאִם הוֹסִיף אַחַת וּבְעָלָהּ לוֹקֶה. וְיֵשׁ לוֹ לְגָרֵשׁ וְלִשָּׂא אַחֶרֶת תַּחַת זוֹ שֶׁגֵּרֵשׁ:
He must not multiply wives; by inference they have learned that he is permitted to marry altogether eighteen wives and concubines. If he married one more and had conjugal intercourse with her, he incurred the penalty of the thirty-nine stripes and is compelled to divorce her.
Halacha 3ג׳
וְלֹא יַרְבֶּה לוֹ סוּסִים אֶלָּא כְּדֵי מֶרְכַּבְתּוֹ. אֲפִלּוּ סוּס אֶחָד פָּנוּי לִהְיוֹת רָץ לְפָנָיו כְּדֶרֶךְ שֶׁעוֹשִׂין שְׁאָר הַמְּלָכִים אָסוּר. וְאִם הוֹסִיף לוֹקֶה:
He must not multiply horses, only sufficient for his chariots, even one single horse not wanted and only for the purpose to run before him, as was the fashion with other kings was interdicted; and if he purchased one superfluous horse he is liable to the chastisement stated above.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Yad-Hachazakah, ed. Elias Soloweyczik, London 1863 — public domain