וַיֹּ֣אמֶר אֱלֹהִ֗ים יִקָּו֨וּ הַמַּ֜יִם מִתַּ֤חַת הַשָּׁמַ֙יִם֙ אֶל־מָק֣וֹם אֶחָ֔ד וְתֵרָאֶ֖ה הַיַּבָּשָׁ֑ה וַֽיְהִי־כֵֽן׃
Lalu Allah berfirman, “Hendaklah air yang di bawah langit berkumpul ke satu tempat, sehingga tampaklah daratan!” Maka jadilah demikian.
Sforno
"And G-d made the firmament" - and it was that when some of the elemental water was removed from under that part of the waters which became vaporous in nature, as it was when He said, "let the waters be gathered from beneath the heavens" Genesis 1:9, it was fit that the vaporous part would descend to that same place from which the that [non-vaporous portion of] waters was removed. But He made it such that that "firmament" that separates would have the power to stop and prevent the vaporous portion from descending - that's the "waters which are above the firmament", such that the transformed atmospheric portion would descend, while the vaporous would remain in its original place. Because of this, when the moist vapor reaches it [i.e., the firmament], it condenses and gives rise to rain, snow and hail. As they condense they descend, as it is said, "at the sound of His placing an abundance of water in the heavens" Jeremiah 10:13. - what it wanted by saying "heavens": the firmament which condenses the atmospheric part [of the waters], as it is said "And G-d called the firmament "heavens" Genesis 1:8. Now when the cloudy, excited vapor arrives there [at the firmament], it generates thunder and lightning, and it is said: "He lifts up clouds from the ends of the earth, thunder from the rain He makes" [continuation of verse quoted previously from Jeremiah]. Now, seeing as how some of the heavier watery element is above the lighter air, which from our perspectives is against their nature - this without doubt indicates the action of an volitional actor, intended such an outcome, as it is said, "the work of His hands shall the firmament declare" Psalms 19:2
Rashi
יקוו המים THE WATERS SHALL BE DRAWN TOGETHER — For they were then spread over the surface of the whole earth, and He now gathered them together into what now constitutes the Ocean, which is the largest of all seas (Genesis Rabbah 5:2).
Chizkuni
יקוו המים, “let the waters be gathered together;” this is the conclusion of G-d’s creative activity of the second day. The רקיע, “atmosphere/horizon,” did not become operational until the earth had dried out. The reader is asked not to be astounded at the fact that the Torah had previously inserted the phrase: “it was evening, it was morning, the second day.” The reason why this is no contradiction as supposed at first glance, is that the meaning of the words: יקוו המים is that G-d’s commandment for the process of the waters gathering together had been issued already beforethe evening and subsequent morning of the second day. There are numerous such constructions in the Torah; we must not forget also, that both the gathering together of the water and the resultant visibility of the earth, were no new phenomena that could be described as “creation.” Expansion of one phenomenon so that another phenomenon could become visible is no basic change.