אמר רב יהודה אמר שמואל כל האמור בפרשת מלך מלך מותר בו רב אמר לא נאמרה פרשה זו אלא לאיים עליהם שנאמר (דברים יז, טו) שום תשים עליך מלך שתהא אימתו עליך כתנאי ר' יוסי אומר כל האמור בפרשת מלך מלך מותר בו ר' יהודה אומר לא נאמרה פרשה זו אלא כדי לאיים עליהם שנאמר שום תשים עליך מלך שתהא אימתו עליך וכן היה רבי יהודה אומר ג' מצות נצטוו ישראל בכניסתן לארץ להעמיד להם מלך ולהכרית זרעו של עמלק ולבנות להם בית הבחירה רבי נהוראי אומר לא נאמרה פרשה זו אלא כנגד תרעומתן שנאמר (דברים יז, יד) ואמרת אשימה עלי מלך וגו' תניא ר"א אומר זקנים שבדור כהוגן שאלו שנאמר (שמואל א ח, ו) תנה לנו מלך לשפטנו אבל עמי הארץ שבהן קלקלו שנאמר (שמואל א ח, כ) והיינו גם אנחנו ככל הגוים ושפטנו מלכנו ויצא לפנינו.
Rav Yehuda says that Shmuel says: Concerning all the actions that are stated in the biblical passage about the king (see I Samuel 8:11–17), it is permitted for a king to perform them. Rav says: This biblical passage was stated only in order to threaten the Jewish people, so that they would accept the king’s sovereignty with reverence, as it is stated: “You shall set a king over you” (Deuteronomy 17:15), meaning, it is necessary that his fear should be upon you. But the king is not actually permitted to perform the actions stated there. The Gemara comments that this dispute is parallel to a dispute between tanna’im, as it is taught in a baraita: Rabbi Yosei says: Concerning all the actions that are stated in the biblical passage about the king, it is permitted for a king to perform them. Rabbi Yehuda says: This biblical passage was stated only in order to threaten the Jewish people, as it is stated: “You shall set a king over you” (Deuteronomy 17:15), meaning, it is necessary that his fear should be upon you. The baraita continues: And so would Rabbi Yehuda say: Three mitzvot were commanded to the Jewish people upon their entrance into Eretz Yisrael, which apply only in Eretz Yisrael: They were commanded to establish a king for themselves (see Deuteronomy 17:14–15), and to cut off the seed of Amalek in war (see Deuteronomy 25:17–19), and to build the Chosen House, i.e., the Temple, in Jerusalem (see Deuteronomy 12:10–12). The baraita continues: Rabbi Nehorai says: This biblical passage about appointing a king was stated only in response to the Jewish people’s complaint, as it is stated: “When you come unto the land that the Lord your God gives you, and shall possess it, and shall dwell therein, and shall say: I will set a king over me, like all the nations that are around me” (Deuteronomy 17:14). The verse indicates that appointing a king is not a mitzva and that when Samuel spoke to them, he intended to frighten them so that they might regret their complaint and retract their request for a king. It is taught in a baraita: Rabbi Eliezer says: The elders of Samuel’s generation asked appropriately, as it is stated: “Give us a king to judge us” (I Samuel 8:6), since they wanted a steady leader in place of Samuel. But the ignoramuses among them ruined it, as it is stated: “But the people refused to heed the voice of Samuel; and they said: No, but there shall be a king over us, that we also may be like all the nations, and that our king may judge us, and emerge before us, and fight our battles” (I Samuel 8:19–20).
מִנּוּי מֶלֶךְ קוֹדֵם לְמִלְחֶמֶת עֲמָלֵק [...] מֵאַחַר שֶׁהֲקָמַת מֶלֶךְ מִצְוָה לָמָּה לֹא רָצָה הַקָּדוֹשׁ בָּרוּךְ הוּא כְּשֶׁשָּׁאֲלוּ מֶלֶךְ מִשְּׁמוּאֵל. לְפִי שֶׁשָּׁאֲלוּ בְּתַרְעֹמֶת. וְלֹא שָׁאֲלוּ לְקַיֵּם הַמִּצְוָה אֶלָּא מִפְּנֵי שֶׁקָּצוּ בִּשְׁמוּאֵל הַנָּבִיא. שֶׁנֶּאֱמַר (שמואל א ח ז) "כִּי לֹא אֹתְךָ מָאָסוּ כִּי אֹתִי מָאֲסוּ" וְגוֹ':
The appointment of a king should precede the war against Amalek [...] Since it is a mitzvah to appoint a king, why was God displeased with the people's request of a king from Samuel? Because they made their request in a spirit of complaint. Rather than seeking to fulfill the mitzvah of appointing a king, they were simply intent on rejecting the Prophet Samuel as implied by God's reply to him (I Samuel 8:7 : 'It is not you, but Me they have rejected.'
