1:9

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

And the Almighty said: "Let the waters that are under the heavens gather into one place, and let the dry land appear." And it was so.

Bereshit 1:9

וַיֹּאמֶר אֱלֹהִים יִקָּווּ

Bereshit / Genesis 1:9 · Pshat

Bereshit 1:9

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

And the Almighty said: "Let the waters that are under the heavens gather into one place, and let the dry land appear." And it was so.

Pshat פְּשָׁט

Waters above the land

Fill a glass to the brim, and the water spills over. But the sea stands at the shore and does not spill over. What holds it?

In the beginning the waters covered the whole earth, and God gathered them into the ocean, Rashi explains. Radak sees a wonder in this: once gathered, the waters rose higher than the dry land, though water flows downward, and yet they do not cross the boundary God set for them.

How Rashi and Radak explain it

Rashi Let the waters gather

They were spread out over the whole earth, and He gathered them into the ocean. This is the great sea, the largest of all the seas.

Radak Into one place

That is, into a place set apart for them, beyond which there is no dry land.

"And it was so": the waters gathered into one place, and the dry land appeared. This is one of the wonders of the Creator, blessed is He. When the waters gathered into the waters that were already there, they rose higher than the dry land, though water by its nature flows from high to low. And yet they did not cross the boundary that God set for them. Of this the prophet said: "I set the sand as a boundary for the sea" (Yirmeyahu / Jeremiah 5:22). And so King David, peace be upon him, said in the psalm he composed about the creation of the world: "You set a boundary that they will not cross" (Tehillim / Psalms 104:9). And so in Bereshit Rabbah (5:7): "Usually a man pours a full vessel into an empty one. Does anyone pour a full vessel into a full one? Astonishing!"

Takeaway

The same as Rashi says is told by the midrash Pirkei DeRabbi Eliezer (chapter 5): on the third day the waters covered the whole earth, until the mountains rose and the waters rolled down into the hollows. This midrash is shown in Drash.
The words Radak quotes have an answer in the midrash: "The whole world was water in water, and it says 'into one place'? So the little held the much" (Bereshit Rabbah 5:7).
Jeremiah's verse goes on: "They toss, but cannot prevail, its waves roar, but do not cross it" (Yirmeyahu / Jeremiah 5:22). Remez and Drash rest on the same verse.