(א) וַיֹּ֤אמֶר שְׁמוּאֵל֙ אֶל־כׇּל־יִשְׂרָאֵ֔ל הִנֵּה֙ שָׁמַ֣עְתִּי בְקֹֽלְכֶ֔ם לְכֹ֥ל אֲשֶׁר־אֲמַרְתֶּ֖ם לִ֑י וָאַמְלִ֥יךְ עֲלֵיכֶ֖ם מֶֽלֶךְ׃ (ב) וְעַתָּ֞ה הִנֵּ֥ה הַמֶּ֣לֶךְ ׀ מִתְהַלֵּ֣ךְ לִפְנֵיכֶ֗ם וַֽאֲנִי֙ זָקַ֣נְתִּי וָשַׂ֔בְתִּי וּבָנַ֖י הִנָּ֣ם אִתְּכֶ֑ם וַֽאֲנִי֙ הִתְהַלַּ֣כְתִּי לִפְנֵיכֶ֔ם מִנְּעֻרַ֖י עַד־הַיּ֥וֹם הַזֶּֽה׃ (ג) הִנְנִ֣י עֲנ֣וּ בִי֩ נֶ֨גֶד יְהֹוָ֜ה וְנֶ֣גֶד מְשִׁיח֗וֹ אֶת־שׁוֹר֩ ׀ מִ֨י לָקַ֜חְתִּי וַחֲמ֧וֹר מִ֣י לָקַ֗חְתִּי וְאֶת־מִ֤י עָשַׁ֙קְתִּי֙ אֶת־מִ֣י רַצּ֔וֹתִי וּמִיַּד־מִי֙ לָקַ֣חְתִּי כֹ֔פֶר וְאַעְלִ֥ים עֵינַ֖י בּ֑וֹ וְאָשִׁ֖יב לָכֶֽם׃ (ד) וַיֹּ֣אמְר֔וּ לֹ֥א עֲשַׁקְתָּ֖נוּ וְלֹ֣א רַצּוֹתָ֑נוּ וְלֹא־לָקַ֥חְתָּ מִיַּד־אִ֖ישׁ מְאֽוּמָה׃ (ה) וַיֹּ֨אמֶר אֲלֵיהֶ֜ם עֵ֧ד יְהֹוָ֣ה בָּכֶ֗ם וְעֵ֤ד מְשִׁיחוֹ֙ הַיּ֣וֹם הַזֶּ֔ה כִּ֣י לֹ֧א מְצָאתֶ֛ם בְּיָדִ֖י מְא֑וּמָה וַיֹּ֖אמֶר עֵֽד׃ {פ}
(ו) וַיֹּ֥אמֶר שְׁמוּאֵ֖ל אֶל־הָעָ֑ם יְהֹוָ֗ה אֲשֶׁ֤ר עָשָׂה֙ אֶת־מֹשֶׁ֣ה וְאֶֽת־אַהֲרֹ֔ן וַאֲשֶׁ֧ר הֶעֱלָ֛ה אֶת־אֲבֹתֵיכֶ֖ם מֵאֶ֥רֶץ מִצְרָֽיִם׃ (ז) וְעַתָּ֗ה הִֽתְיַצְּב֛וּ וְאִשָּׁפְטָ֥ה אִתְּכֶ֖ם לִפְנֵ֣י יְהֹוָ֑ה אֵ֚ת כׇּל־צִדְק֣וֹת יְהֹוָ֔ה אֲשֶׁר־עָשָׂ֥ה אִתְּכֶ֖ם וְאֶת־אֲבוֹתֵיכֶֽם׃ (ח) כַּאֲשֶׁר־בָּ֥א יַעֲקֹ֖ב מִצְרָ֑יִם וַיִּזְעֲק֤וּ אֲבֽוֹתֵיכֶם֙ אֶל־יְהֹוָ֔ה וַיִּשְׁלַ֨ח יְהֹוָ֜ה אֶת־מֹשֶׁ֣ה וְאֶֽת־אַהֲרֹ֗ן וַיּוֹצִ֤יאוּ אֶת־אֲבֹֽתֵיכֶם֙ מִמִּצְרַ֔יִם וַיֹּשִׁב֖וּם בַּמָּק֥וֹם הַזֶּֽה׃ (ט) וַֽיִּשְׁכְּח֖וּ אֶת־יְהֹוָ֣ה אֱלֹהֵיהֶ֑ם וַיִּמְכֹּ֣ר אֹתָ֡ם בְּיַ֣ד סִֽיסְרָא֩ שַׂר־צְבָ֨א חָצ֜וֹר וּבְיַד־פְּלִשְׁתִּ֗ים וּבְיַד֙ מֶ֣לֶךְ מוֹאָ֔ב וַיִּֽלָּחֲמ֖וּ בָּֽם׃ (י) וַיִּזְעֲק֤וּ אֶל־יְהֹוָה֙ (ויאמר) [וַיֹּֽאמְר֣וּ] חָטָ֔אנוּ כִּ֤י עָזַ֙בְנוּ֙ אֶת־יְהֹוָ֔ה וַנַּעֲבֹ֥ד אֶת־הַבְּעָלִ֖ים וְאֶת־הָעַשְׁתָּר֑וֹת וְעַתָּ֗ה הַצִּילֵ֛נוּ מִיַּ֥ד אֹיְבֵ֖ינוּ וְנַעַבְדֶֽךָּ׃ (יא) וַיִּשְׁלַ֤ח יְהֹוָה֙ אֶת־יְרֻבַּ֣עַל וְאֶת־בְּדָ֔ן וְאֶת־יִפְתָּ֖ח וְאֶת־שְׁמוּאֵ֑ל וַיַּצֵּ֨ל אֶתְכֶ֜ם מִיַּ֤ד אֹֽיְבֵיכֶם֙ מִסָּבִ֔יב וַתֵּשְׁב֖וּ בֶּֽטַח׃ (יב) וַתִּרְא֗וּ כִּֽי־נָחָ֞שׁ מֶ֣לֶךְ בְּנֵֽי־עַמּוֹן֮ בָּ֣א עֲלֵיכֶם֒ וַתֹּ֣אמְרוּ לִ֔י לֹ֕א כִּי־מֶ֖לֶךְ יִמְלֹ֣ךְ עָלֵ֑ינוּ וַיהֹוָ֥ה אֱלֹהֵיכֶ֖ם מַלְכְּכֶֽם׃ (יג) וְעַתָּ֗ה הִנֵּ֥ה הַמֶּ֛לֶךְ אֲשֶׁ֥ר בְּחַרְתֶּ֖ם אֲשֶׁ֣ר שְׁאֶלְתֶּ֑ם וְהִנֵּ֨ה נָתַ֧ן יְהֹוָ֛ה עֲלֵיכֶ֖ם מֶֽלֶךְ׃ (יד) אִם־תִּֽירְא֣וּ אֶת־יְהֹוָ֗ה וַעֲבַדְתֶּ֤ם אֹתוֹ֙ וּשְׁמַעְתֶּ֣ם בְּקוֹל֔וֹ וְלֹ֥א תַמְר֖וּ אֶת־פִּ֣י יְהֹוָ֑ה וִהְיִתֶ֣ם גַּם־אַתֶּ֗ם וְגַם־הַמֶּ֙לֶךְ֙ אֲשֶׁ֣ר מָלַ֣ךְ עֲלֵיכֶ֔ם אַחַ֖ר יְהֹוָ֥ה אֱלֹֽהֵיכֶֽם׃ (טו) וְאִם־לֹ֤א תִשְׁמְעוּ֙ בְּק֣וֹל יְהֹוָ֔ה וּמְרִיתֶ֖ם אֶת־פִּ֣י יְהֹוָ֑ה וְהָיְתָ֧ה יַד־יְהֹוָ֛ה בָּכֶ֖ם וּבַאֲבֹתֵיכֶֽם׃ (טז) גַּם־עַתָּה֙ הִתְיַצְּב֣וּ וּרְא֔וּ אֶת־הַדָּבָ֥ר הַגָּד֖וֹל הַזֶּ֑ה אֲשֶׁ֣ר יְהֹוָ֔ה עֹשֶׂ֖ה לְעֵינֵיכֶֽם׃ (יז) הֲל֤וֹא קְצִיר־חִטִּים֙ הַיּ֔וֹם אֶקְרָא֙ אֶל־יְהֹוָ֔ה וְיִתֵּ֥ן קֹל֖וֹת וּמָטָ֑ר וּדְע֣וּ וּרְא֗וּ כִּֽי־רָעַתְכֶ֤ם רַבָּה֙ אֲשֶׁ֤ר עֲשִׂיתֶם֙ בְּעֵינֵ֣י יְהֹוָ֔ה לִשְׁא֥וֹל לָכֶ֖ם מֶֽלֶךְ׃ {ס} (יח) וַיִּקְרָ֤א שְׁמוּאֵל֙ אֶל־יְהֹוָ֔ה וַיִּתֵּ֧ן יְהֹוָ֛ה קֹלֹ֥ת וּמָטָ֖ר בַּיּ֣וֹם הַה֑וּא וַיִּירָ֨א כׇל־הָעָ֥ם מְאֹ֛ד אֶת־יְהֹוָ֖ה וְאֶת־שְׁמוּאֵֽל׃ (יט) וַיֹּאמְר֨וּ כׇל־הָעָ֜ם אֶל־שְׁמוּאֵ֗ל הִתְפַּלֵּ֧ל בְּעַד־עֲבָדֶ֛יךָ אֶל־יְהֹוָ֥ה אֱלֹהֶ֖יךָ וְאַל־נָמ֑וּת כִּֽי־יָסַ֤פְנוּ עַל־כׇּל־חַטֹּאתֵ֙ינוּ֙ רָעָ֔ה לִשְׁאֹ֥ל לָ֖נוּ מֶֽלֶךְ׃ (כ) וַיֹּ֨אמֶר שְׁמוּאֵ֤ל אֶל־הָעָם֙ אַל־תִּירָ֔אוּ אַתֶּ֣ם עֲשִׂיתֶ֔ם אֵ֥ת כׇּל־הָרָעָ֖ה הַזֹּ֑את אַ֗ךְ אַל־תָּס֙וּרוּ֙ מֵאַחֲרֵ֣י יְהֹוָ֔ה וַעֲבַדְתֶּ֥ם אֶת־יְהֹוָ֖ה בְּכׇל־לְבַבְכֶֽם׃ (כא) וְלֹ֖א תָּס֑וּרוּ כִּ֣י ׀ אַחֲרֵ֣י הַתֹּ֗הוּ אֲשֶׁ֧ר לֹֽא־יוֹעִ֛ילוּ וְלֹ֥א יַצִּ֖ילוּ כִּי־תֹ֥הוּ הֵֽמָּה׃ (כב) כִּ֠י לֹֽא־יִטֹּ֤שׁ יְהֹוָה֙ אֶת־עַמּ֔וֹ בַּעֲב֖וּר שְׁמ֣וֹ הַגָּד֑וֹל כִּ֚י הוֹאִ֣יל יְהֹוָ֔ה לַעֲשׂ֥וֹת אֶתְכֶ֛ם ל֖וֹ לְעָֽם׃
That is to say, I have not gotten one benefit from my work on your behalf. In fact, you have aged me greatly with the your behavior. My children have not inherited any of my greatness as they're just like you all. You've never found me negligent in my work nor have you found any flaw within the work that I do, perverting justice or working unethically.
Even after the fact, God's providence over you has not abated to be seen from two directions. At the time of your rebellion, God afflicted you like a parent does a child. Right when you returned, God saved you. Sometimes God sold you out to your enemies like with Sisera and the Philistines. Sometimes, your enemies just fought you but didn't control you.
Ramban:
The request for royalty at that time was distasteful to the Holy One, blessed be He…. The reason for all this was that at this time Shemuel was judge and prophet who was fighting their battles according to the word of God, saving them in times of trouble, and it was improper for them to request a king during his lifetime, even as Shemuel said to them: "And the Lord your God is your king" (I Shemuel 12:12). And the Holy One, blessed be He, said to him: "They have not rejected you, but they have rejected Me" (ibid. 8:7). It was for this reason that He did not grant them permanent royalty.
If God was angry for you all for no reason, you would have something to fear as God's desire toward you would change from good to evil. But since there was a reason that was dependent on your wayward actions, we can see that God's desire toward you remains the same. If you right your wrongs, don't fear too much but don't go away from God anymore. God has acted according to God's love, greatness, and raising you up. That is to say, it was not for an outward reason that God did this in some punitive way.
Despite the fact that you sinned before God, God will not abandon you for God's great name. That is to say, because God's name is known among the nations as wanting you to be God's people. If God were to punish you badly, it would diminish God's name and they would say that God couldn't salvage you. This is the same that both Moshe and Joshua have argued.