Bamidbar20:1

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

And the children of Israel, the whole congregation, came into the wilderness of Tzin in the first month, and the people stayed in Kadesh. And Miryam (Miriam) died there and was buried there.

Bamidbar 20:1

וַיָּבֹאוּ בְנֵי־יִשְׂרָאֵל כָּל־הָעֵדָה

Bamidbar / Numbers 20:1 · Remez

Bamidbar 20:1

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

And the children of Israel, the whole congregation, came into the wilderness of Tzin in the first month, and the people stayed in Kadesh. And Miryam (Miriam) died there and was buried there.

Remez רֶמֶז

There, where Miryam died

One short word can tie two different stories together. Sometimes even the name of a place sounds like a clue.

The Talmud: the word "there" (שָׁם) is said both of the death of Moshe (Moses) and of the death of Miryam (Miriam), so she too died by a kiss. Rabbeinu Bahya: "and stayed" (וַיֵּשֶׁב) speaks of trouble, so right after it come Miryam's death and the story of the rock. Rabbi Nachman hears in Tzin (צִן) "cooled" speech, and in the name Miryam bitterness.

How Talmud, Bava Batra, Rabbeinu Bahya, and Likutei Moharan explain it

Talmud, Bava Batra And Miryam died there

But of Miryam (Miriam) it is not written "by the word of the Eternal"! Said Rabbi Elazar: Miryam too died by a kiss, for this is learned from the word "there" (שָׁם), which is said also of Moshe (Moses). And why is it not said of her "by the word of the Eternal"? Because it would be unseemly to say so.

Rabbeinu Bahya And the people stayed (וַיֵּשֶׁב) in Kadesh

And know that the children of Israel lived many days in this city called Kadesh, as it is written: "and you stayed in Kadesh many days" (Devarim / Deuteronomy 1:46). And our sages taught: wherever it says "and he stayed" (וַיֵּשֶׁב), it speaks of trouble. Therefore it is written: "and Miryam died there," and right after comes the story of the rock, because of which Moshe and Aharon (Aaron) died in the wilderness and did not merit to enter the land.

Likutei Moharan The wilderness of Tzin

This is what "the wilderness of Tzin" (צִן) means: it is cooled (מְצֻנָּן) speech. There Miryam (מִרְיָם) died: she is the soul that bears the bitterness (מְרִירוּת) of servitude for the sake of the Torah. And then the well (בְּאֵר) disappeared, that is, the explanations (בֵּאוּרֵי) of the Torah, and then "the people quarrelled with Moshe": this is the quarrel that was aroused.

Takeaway

The Talmud compares one word in two places: of Moshe (Moses) it says "and Moshe died there (שָׁם) by the word of the Eternal" (Devarim / Deuteronomy 34:5), of Miryam (Miriam), "and she died there (שָׁם)."
"By the word of the Eternal" (עַל פִּי ה׳) literally means "by the mouth of the Eternal": hence the image of death by a kiss.
Tzin (צִן) sounds like the word "cooled" (מְצֻנָּן), Miryam (מִרְיָם) like the word "bitterness" (מְרִירוּת), the well (בְּאֵר) like the word "explanation" (בֵּאוּר).
Miryam's well is the spring the people had in the wilderness all forty years by her merit (Rashi on Bamidbar / Numbers 20:2).