Bamidbar21:17

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

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

Bamidbar 21:17

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

Bamidbar / Numbers 21:17 · Remez

Bamidbar 21:17

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

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

Remez רֶמֶז

Sung with thanks

A word may appear in the Tanakh only twice. Then the two places explain each other.

Ba'al HaTurim: the word "sing" (עֱנוּ) appears twice in the Masorah: here and in "Sing to the Eternal with thanks," so over the well they sang with thanks. And they sang by the water, in a pure place, as in "at the places of drawing water, there they shall tell the righteous acts of the Eternal." Midrash Lekach Tov: they sang as Miryam (Miriam) sang at the sea: one begins, all respond.

How Kitzur Ba'al HaTurim and Midrash Lekach Tov explain it

Kitzur Ba'al HaTurim Spring up, O well! Sing to it!

When they returned from the war, they camped by the well and said a song in a pure place, as it is written: "at the places of drawing water, there they shall tell the righteous acts of the Eternal" (Shoftim / Judges 5:11).

Kitzur Ba'al HaTurim Sing

The word "sing" (עֱנוּ) appears twice in the Masorah: "Sing to it" here and "Sing to the Eternal with thanks" (Tehillim / Psalms 147:7). This means that over the well they sang to Him with thanks and said a song.

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

And like it: "A vineyard of wine, sing to it" (Yeshayahu / Isaiah 27:2). "Spring up, O well, sing to it" is a command, like "Sing to the Eternal with thanks" (Tehillim / Psalms 147:7). But "A vineyard of wine, sing to it" is future tense. So the response of the song went: "Spring up, O well! Sing to it!" They asked that its water should not stop. And this response was theirs just as they responded in Moshe's (Moses') days: "I will sing to the Eternal," and Miryam (Miriam) "answered them" (Shemot / Exodus 15:1, 15:21). As she answered every word, so they answered.

Takeaway

The Masorah is the scribes' notes on how each word in the Tanakh is written and how many times it appears.
The verse "at the places of drawing water, there they shall tell" (Shoftim / Judges 5:11) is from the song of Devorah (Deborah) after the victory over Sisera.
Miryam (Miriam) sang at the sea together with the women: "Sing to the Eternal" (Shemot / Exodus 15:20–21).