What did Moses do so wrong?--Parashat Hukkat
(א) וַיָּבֹ֣אוּ בְנֵֽי־יִ֠שְׂרָאֵ֠ל כׇּל־הָ֨עֵדָ֤ה מִדְבַּר־צִן֙ בַּחֹ֣דֶשׁ הָֽרִאשׁ֔וֹן וַיֵּ֥שֶׁב הָעָ֖ם בְּקָדֵ֑שׁ וַתָּ֤מׇת שָׁם֙ מִרְיָ֔ם וַתִּקָּבֵ֖ר שָֽׁם׃ (ב) וְלֹא־הָ֥יָה מַ֖יִם לָעֵדָ֑ה וַיִּקָּ֣הֲל֔וּ עַל־מֹשֶׁ֖ה וְעַֽל־אַהֲרֹֽן׃ (ג) וַיָּ֥רֶב הָעָ֖ם עִם־מֹשֶׁ֑ה וַיֹּאמְר֣וּ לֵאמֹ֔ר וְל֥וּ גָוַ֛עְנוּ בִּגְוַ֥ע אַחֵ֖ינוּ לִפְנֵ֥י ה׳׃ (ד) וְלָמָ֤ה הֲבֵאתֶם֙ אֶת־קְהַ֣ל ה׳ אֶל־הַמִּדְבָּ֖ר הַזֶּ֑ה לָמ֣וּת שָׁ֔ם אֲנַ֖חְנוּ וּבְעִירֵֽנוּ׃ (ה) וְלָמָ֤ה הֶֽעֱלִיתֻ֙נוּ֙ מִמִּצְרַ֔יִם לְהָבִ֣יא אֹתָ֔נוּ אֶל־הַמָּק֥וֹם הָרָ֖ע הַזֶּ֑ה לֹ֣א ׀ מְק֣וֹם זֶ֗רַע וּתְאֵנָ֤ה וְגֶ֙פֶן֙ וְרִמּ֔וֹן וּמַ֥יִם אַ֖יִן לִשְׁתּֽוֹת׃ (ו) וַיָּבֹא֩ מֹשֶׁ֨ה וְאַהֲרֹ֜ן מִפְּנֵ֣י הַקָּהָ֗ל אֶל־פֶּ֙תַח֙ אֹ֣הֶל מוֹעֵ֔ד וַֽיִּפְּל֖וּ עַל־פְּנֵיהֶ֑ם וַיֵּרָ֥א כְבוֹד־ה׳ אֲלֵיהֶֽם׃ {פ}
(ז) וַיְדַבֵּ֥ר ה׳ אֶל־מֹשֶׁ֥ה לֵּאמֹֽר׃ (ח) קַ֣ח אֶת־הַמַּטֶּ֗ה וְהַקְהֵ֤ל אֶת־הָעֵדָה֙ אַתָּה֙ וְאַהֲרֹ֣ן אָחִ֔יךָ וְדִבַּרְתֶּ֧ם אֶל־הַסֶּ֛לַע לְעֵינֵיהֶ֖ם וְנָתַ֣ן מֵימָ֑יו וְהוֹצֵאתָ֨ לָהֶ֥ם מַ֙יִם֙ מִן־הַסֶּ֔לַע וְהִשְׁקִיתָ֥ אֶת־הָעֵדָ֖ה וְאֶת־בְּעִירָֽם׃ (ט) וַיִּקַּ֥ח מֹשֶׁ֛ה אֶת־הַמַּטֶּ֖ה מִלִּפְנֵ֣י ה׳ כַּאֲשֶׁ֖ר צִוָּֽהוּ׃ (י) וַיַּקְהִ֜לוּ מֹשֶׁ֧ה וְאַהֲרֹ֛ן אֶת־הַקָּהָ֖ל אֶל־פְּנֵ֣י הַסָּ֑לַע וַיֹּ֣אמֶר לָהֶ֗ם שִׁמְעוּ־נָא֙ הַמֹּרִ֔ים הֲמִן־הַסֶּ֣לַע הַזֶּ֔ה נוֹצִ֥יא לָכֶ֖ם מָֽיִם׃ (יא) וַיָּ֨רֶם מֹשֶׁ֜ה אֶת־יָד֗וֹ וַיַּ֧ךְ אֶת־הַסֶּ֛לַע בְּמַטֵּ֖הוּ פַּעֲמָ֑יִם וַיֵּצְאוּ֙ מַ֣יִם רַבִּ֔ים וַתֵּ֥שְׁתְּ הָעֵדָ֖ה וּבְעִירָֽם׃ {ס} (יב) וַיֹּ֣אמֶר ה׳ אֶל־מֹשֶׁ֣ה וְאֶֽל־אַהֲרֹן֒ יַ֚עַן לֹא־הֶאֱמַנְתֶּ֣ם בִּ֔י לְהַ֨קְדִּישֵׁ֔נִי לְעֵינֵ֖י בְּנֵ֣י יִשְׂרָאֵ֑ל לָכֵ֗ן לֹ֤א תָבִ֙יאוּ֙ אֶת־הַקָּהָ֣ל הַזֶּ֔ה אֶל־הָאָ֖רֶץ אֲשֶׁר־נָתַ֥תִּי לָהֶֽם׃ (יג) הֵ֚מָּה מֵ֣י מְרִיבָ֔ה אֲשֶׁר־רָב֥וּ בְנֵֽי־יִשְׂרָאֵ֖ל אֶת־ה׳ וַיִּקָּדֵ֖שׁ בָּֽם׃ {ס}

(1) The Israelites arrived in a body at the wilderness of Zin on the first new moon,*first new moon Of the fortieth year; cf. Num. 33.36–38. and the people stayed at Kadesh. Miriam died there and was buried there. (2) The community was without water, and they joined against Moses and Aaron. (3) The people quarreled with Moses, saying, “If only we had perished when our brothers perished at the instance of ה׳ ! (4) Why have you brought יה’s congregation into this wilderness for us and our beasts to die there? (5) Why did you make us leave Egypt to bring us to this wretched place, a place with no grain or figs or vines or pomegranates? There is not even water to drink!” (6) Moses and Aaron came away from the congregation to the entrance of the Tent of Meeting, and fell on their faces. The Presence of ה׳ appeared to them, (7) and ה׳ spoke to Moses, saying, (8) “You and your brother Aaron take the rod and assemble the community, and before their very eyes order the rock to yield its water. Thus you shall produce water for them from the rock and provide drink for the congregation and their beasts.” (9) Moses took the rod from before ה׳, as he had been commanded. (10) Moses and Aaron assembled the congregation in front of the rock; and he said to them, “Listen, you rebels, shall we get water for you out of this rock?” (11) And Moses raised his hand and struck the rock twice with his rod. Out came copious water, and the community and their beasts drank. (12) But ה׳ said to Moses and Aaron, “Because you did not trust Me enough to affirm My sanctity in the sight of the Israelite people, therefore you shall not lead this congregation into the land that I have given them.” (13) Those are the Waters of Meribah, meaning that the Israelites quarrelled with ה׳ —whose sanctity was affirmed through them.

להקדישני. שֶׁאִלּוּ דִּבַּרְתֶּם אֶל הַסֶּלַע וְהוֹצִיא, הָיִיתִי מְקֻדָּשׁ לְעֵינֵי הָעֵדָה, וְאוֹמְרִים מַה סֶּלַע זֶה שֶׁאֵינוֹ מְדַבֵּר וְאֵינוֹ שׁוֹמֵעַ וְאֵינוֹ צָרִיךְ לְפַרְנָסָה מְקַיֵּם דִּבּוּרוֹ שֶׁל מָקוֹם, קַל וָחֹמֶר אָנוּ:

(1040-1105, France) להקדישני TO SANCTIFY ME — For had you spoken to the rock and it had brought forth water I would have been sanctified before the whole congregation, for they would have said: What is the case with this rock which cannot speak and cannot hear and needs no maintenance? It fulfils the bidding of the Omnipresent God! How much more should we do so?

רמב"ם, שמונה פרקים פרק ד':
וחטאו עליו השלום, הוא שנטה לצד אחד הקצוות במעלה אחת שבמעלות המידות, והיא הסבלנות. כאשר נטה לצד הרגזנות, באומרו: "שמעו נא המורים" (במדבר כ', י'). דקדק עמו הקדוש ברוך הוא, שיהיה אדם כמוהו מתרגז לעיני עדת ישראל, במקום שאין הרגזנות ראויה. וכגון זה באדם שכמותו חילול השם הוא, שכן תנועותיו כולן ודיברותיו, הכל למדים מהם, וחומדים בהם האושר בעולם הזה ובעולם הבא.

Maimonides (1135-1204, Spain, Egypt), Shmonah Perakim, Chapter 4

[Moses's] whole sin lay in erring on the side of anger and deviating from the mean of patience, when he used the expression "hear ye now ye rebels!" The Holy One blessed be He censured him for this, that a man of his stature should give vent to anger in front of the whole community of Israel where anger was not called for. This behavior in such a man constituted a profanation of the Name (hillul ha-shem), since he was the model of good conduct for all the people, who aspired to find their worldly and other-worldly happiness in emulating him.

החטא במשה ואהרן במי מריבה אינו מתפרסם בכתוב... והקרוב מן הדברים שנאמרו בזה והוא טוב לדחות השואל הם דברי רבינו חננאל שכתב כי החטא הוא אמרם (במדבר כ׳:י׳) המן הסלע הזה נוציא לכם מים וראוי שיאמרו יוציא ה׳ לכם מים כדרך שאמרו (שמות טז ח) בתת ה׳ לכם בערב בשר לאכול וגו' וכן בכל הנסים יודיעום כי ה׳ יעשה עמהם להפליא ואולי חשבו העם כי משה ואהרן בחכמתם הוציאו להם מים מן הסלע הזה וזהו לא קדשתם אותי (דברים לב נא)

(1194-1270, Spain) The sin of Moses and Aaron in the [matter of the] waters of Meribah is not clearly expressed in Scripture...
The most likely explanation amongst all those that have been said about this matter, and the one best suited to answer a questioner, is that of Rabbeinu Chananel, who wrote [in his commentary] that the sin consisted of their saying, are ‘we’ to bring you forth water out of this rock? They should [not have said “are we”, but] “shall the Eternal bring you forth water?” just as they had said when ‘the Eternal shall give’ you in the evening flesh to eat etc., and similarly in [the case of all the] miracles they [Moses and Aaron] informed them that the Eternal would do wonders for them. And [since they did not say so here], perhaps the people thought that Moses and Aaron brought forth the water for them out of the rock through their own wisdom [and that it was not a Divine miracle]. This is [what G-d referred to in saying], ye sanctified Me not.

We hear the smirk and contempt in Moses’ question, “Listen, you rebels, shall we get water for you out of this rock?” (Num. 20:10). In that one word, that act of name-calling, “hamorim,” rebels, Moses summed up years of pent-up frustration, but it was actually he who rebelled at that moment...

At the moment that Moses labeled his constituents and not only their behavior, he lost what every leader needs to continue at difficult times: the faith and trust in the ultimate goodness of those one leads. For leadership to work, followers must trust their leader and leaders must trust and believe in their followers. If one side falters, the covenantal partnership dissipates. Moses let go of his belief in the goodness of the Israelites and no longer regarded their behavior as an understandable lapse under the extraordinary pressures and challenges of the journey. At that point, he lost his soul, much as his followers lost theirs. Unlike earlier inflamed dialogue, Moses no longer fought God for the sake of the people. He was resigned to them as a fetter is chained to a prisoner. He had enough. There was no longer love or affection or joy.”

Excerpt From Dr. Erica Brown, Leadership in the Wilderness
https://books.apple.com/us/book/leadership-in-the-wilderness/id839508135