Bamidbar20:12

וַיֹּאמֶר יְהוָה אֶל־מֹשֶׁה וְאֶל־אַהֲרֹן יַעַן לֹא־הֶאֱמַנְתֶּם בִּי לְהַקְדִּישֵׁנִי לְעֵינֵי בְּנֵי יִשְׂרָאֵל לָכֵן לֹא תָבִיאוּ אֶת־הַקָּהָל הַזֶּה אֶל־הָאָרֶץ אֲשֶׁר־נָתַתִּי לָהֶם׃

And the Eternal said to Moshe and to Aharon: "Because you did not believe in Me, to sanctify Me before the eyes of the children of Israel, therefore you shall not bring this assembly into the land which I have given them."

Bamidbar 20:12

וַיֹּאמֶר יְהוָה אֶל־מֹשֶׁה

Bamidbar / Numbers 20:12 · Drash

Bamidbar 20:12

וַיֹּאמֶר יְהוָה אֶל־מֹשֶׁה וְאֶל־אַהֲרֹן יַעַן לֹא־הֶאֱמַנְתֶּם בִּי לְהַקְדִּישֵׁנִי לְעֵינֵי בְּנֵי יִשְׂרָאֵל לָכֵן לֹא תָבִיאוּ אֶת־הַקָּהָל הַזֶּה אֶל־הָאָרֶץ אֲשֶׁר־נָתַתִּי לָהֶם׃

And the Eternal said to Moshe and to Aharon: "Because you did not believe in Me, to sanctify Me before the eyes of the children of Israel, therefore you shall not bring this assembly into the land which I have given them."

Drash דְּרָשׁ

The stone that blinded

There are places where something hard happened once, and afterwards everything around recalls it. The midrash says Kadesh carried such a memory even before Moshe.

Midrash Tanchuma: Moshe's (Moses') punishment over the water was prepared in advance. Already in Avraham's days Kadesh was called Ein Mishpat, "the spring of judgment": this is the spring of Moshe's judgment. And as a father whose son blinded his own eye with a stone says of every stone, "This one blinded my son," so Scripture says again and again: "These are the waters of Merivah."

How Midrash Tanchuma explain it

Midrash Tanchuma These are the waters of Merivah

From here you learn that from the very start it was prepared that Moshe (Moses) would be punished over the water. See what is written: "And they turned back and came to Ein Mishpat, that is Kadesh" (Bereshit / Genesis 14:7). This is the spring of judgment (עֵין מִשְׁפָּט) of Moshe, this is Kadesh. "These are the waters of Merivah, and He was sanctified through them." And it is called Kadesh (קָדֵשׁ) because it says: "to sanctify (לְהַקְדִּישֵׁנִי) Me before the eyes of the children of Israel."

"These are the waters of Merivah." To what can this be compared? To a king's son who took a stone and blinded his own eye. And his father would say of every stone: "This is the one that blinded my son's eye." Therefore it says: "These are the waters of Merivah, where the children of Israel quarrelled," and so on.

Takeaway

The story of Ein Mishpat is about the war of the kings in Avraham's days (Bereshit / Genesis 14:7), hundreds of years before Moshe (Moses).
Kadesh (קָדֵשׁ) and "to sanctify" (לְהַקְדִּישׁ) come from one root, קדשׁ, "holiness."
Merivah (מְרִיבָה) means "quarrel": here the people quarrelled with Moshe and with the Eternal (Bamidbar / Numbers 20:3, 20:13).