Bamidbar21:17

אָז יָשִׁיר יִשְׂרָאֵל אֶת־הַשִּׁירָה הַזֹּאת עֲלִי בְאֵר עֱנוּ־לָהּ׃

Then Israel sang this song: "Spring up, O well! Sing to it!

Bamidbar 21:17

אָז יָשִׁיר יִשְׂרָאֵל

Bamidbar / Numbers 21:17 · Pshat

Bamidbar 21:17

אָז יָשִׁיר יִשְׂרָאֵל אֶת־הַשִּׁירָה הַזֹּאת עֲלִי בְאֵר עֱנוּ־לָהּ׃

Then Israel sang this song: "Spring up, O well! Sing to it!

Pshat פְּשָׁט

A song without Moshe

The well was with the people all forty years. Why does its song sound only now, at the very end of the road?

Rashi: the well was with the people all forty years, but here it went down into the stream and brought up what was there, so that the people would learn of the miracle, and then they sang. Malbim: Moshe (Moses) did not sing with them, because the water did not come through him, and the people asked the water to rise from the deep. Rabbeinu Bahya: the well brought up the blood of the enemies, and the people saw how the Eternal fights for them.

How Rashi, Malbim, and Rabbeinu Bahya explain it

Rashi Spring up, O well

Rise from the stream and bring up what you bring up. And how do we know that the well let them know? It says: "And from there to Be'er." Was the well from there? It had been with them from the start of the forty years! But it went down to make the miracles known. And so too "Then Israel sang": this song was said at the end of the forty years, and the well was given to them at the start of the forty years. Why then is it written here? But this matter is expounded above, see there.

Malbim Then Israel sang

And through this they were stirred and said a song. But Moshe (Moses) did not sing with them, because the water did not come through him. "Spring up, O well! Sing to it!": they thought the source of the water was very deep, in the great abyss, and they began to dig the well. And they sang and spoke to the water in the abyss, that it should rise from the depths of the great abyss so that they would not need to dig deep.

Rabbeinu Bahya And from there to Be'er

From there the slope of the streams came to the well, that is the rock mentioned above. The well brought up the blood of the slain, and Israel saw this vengeance and how the Holy One, blessed is He, fights for them and kills the enemies. And they knew nothing of it until this well let them know, and at once they said a song. What song did they say? "Spring up, O well! Sing to it!" And the words of the song go on to the end of the passage, to the words "over the wasteland."

Takeaway

Rashi tells above: the Emori (Amorites) hid in caves by the road, the mountains closed over them, and the well carried the blood of the slain into the stream (Rashi on Bamidbar / Numbers 21:15–16).
The song at the sea opens with "Then Moshe (Moses) sang" (Shemot / Exodus 15:1). In the song at the well Moshe's name is absent.
The song to the well is Bamidbar / Numbers 21:17–18. Then the Torah lists the stations up to the Pisgah, which looks down "over the wasteland" (Bamidbar / Numbers 21:20).