Bamidbar21:17

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

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

Bamidbar 21:17

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

Bamidbar / Numbers 21:17 · Sod

Bamidbar 21:17

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

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

Sod סוֹד

A pit and a spring

In a pit the water stands as much as was poured in. In a spring it rises from the depths and does not run out. What water is yours?

Sefat Emet: a pit (בּוֹר) holds gathered water, this is nature, which has a measure. A well (בְּאֵר) is a living spring, the root of blessing, and it is tied to Shabbat. It opens when Israel wish to rise above nature and wait for holiness from above. That is why they sing to the well, that it should rise.

How Sefat Emet explain it

Sefat Emet Spring up, O well! Sing

The opening of the well depends on the awakening of the children of Israel, as it is written: "Drink water from your own pit, and flowing streams from your own well" (Mishlei / Proverbs 5:15). We have explained: a pit (בּוֹר) is gathered water, and this hints at the conduct of nature, which was already prepared at creation so that everything would go by nature. But "flowing streams from your own well" (בְּאֵר) is the opening of the source and the root, the level of a spring. And this is the level of Shabbat, the root of all blessings, as the holy Zohar says: in it nothing is found, yet all blessings depend on it. And this is the difference between a pit and a well: gathered water has a measure, this is the level of nature. And such is the measure of the people of this world: to fill their desires with whatever their hand finds.

But to the children of Israel, who wish to rise above nature, the root of the spring is revealed. That is why "the mouth of the well was created on the eve of Shabbat at twilight." The hint: as much as they receive Shabbat, set aside all work and wait for holy flow from above, so much does the mouth of the well open. They do no work, "in it nothing is found," only the opening of the spring. That is why a spring purifies with any amount of water, and this is the blessing "with all, from all, all." And every Shabbat light comes out of the spring to fill the pit for the six working days, for the whole conduct of nature is like a small pit, as it says in the book Duties of the Heart, at the end of the second gate.

And this is "the well which the princes dug": our fathers of blessed memory, who ruled over their inclination, the patriarchs, over whom the evil inclination did not rule. That is why they opened the well, a conduct above nature.

Takeaway

"The mouth of the well" is one of ten things created on the eve of the first Shabbat at twilight (Mishnah Avot 5:6).
A spring purifies even with a small amount of water (Mishnah Mikvaot 1:7).
"With all, from all, all" (בַּכֹּל, מִכֹּל, כֹּל) are words about the blessing of Avraham (Abraham), Yitzchak (Isaac) and Yaakov (Jacob) (Bava Batra 16b–17a).
Duties of the Heart is a book by Bahya ibn Paquda on the service of the heart (11th century).