And He completed them as seven heavens within two days and inspired [i.e., made known] in each heaven its command. And We adorned the nearest heaven with lamps [i.e., stars, for beauty] and as protection. That is the determination of the Exalted in Might, the Knowing.
(Say: "Do you verily disbelieve in Him Who created the earth in two Days And you set up rivals with Him") meaning, `false gods whom you worship alongside Him'
ذَلِكَ رَبُّ الْعَـلَمِينَ
(That is the Lord of the that exists.) the Creator of all things is the Lord of all the creatures. Here the Ayah;
(Who created the heavens and the earth in Six Days) (7:54). is explained in more detail; the creation of the earth and the creation of the heaven are discussed separately. Allah says that He created the earth first, because it is the foundation, and the foundation should be built first, then the roof. Allah says elsewhere:
فَقَالَ لَهَا وَلِلْأَرْضِ ائْتِيَا طَوْعًا أَوْ كَرْهًا قَالَتَا أَتَيْنَا طَائِعِينَ (and said to it and to the earth, "Come [ to My obedience ], both of you, willingly or unwillingly." Both said, "We come willingly." - 41:11) This command addressed to the earth and sky and their compliant and obedient reply, according to some exegetes, is a metaphorical expression for the readiness of the earth and the sky to comply with every order from Allah Almighty. But Ibn ` Atiyyah and other leading research scholars have stated that this is no metaphor it is based on reality. Allah Almighty had endowed the earth and the skies with the faculty of intellect and comprehension of the commands addressed to them and also with the power of speaking and replying. Tafsir Al-Bahr-ul-Muhit, after quoting this explanation, has held it to be the most suitable and the best. Ibn Kathir, after quoting the above explanation, has also quoted the statement of some exegetes that the earth's reply was given by that portion of the earth on which Baytullah has been constructed and the sky's reply was given by that portion of the sky which is just above the Baytullah, known as Al-Bayt-ul- Ma` mur.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 12–13
A study of the universe reveals that its creation has been effected gradually in a phased manner. Creation in this way—in other words by stages, means planned creation; and when the creation of the universe has been so carried out, it essentially follows that it has a Planner who has purposefully created it according to a set plan. Similarly, there are mountains on this earth at various places that maintain the balance of the earth. There are millions of species of living organisms on this earth and every species requires different types of sustenance, which are found in its habitat. Similarly, a study of the universe also shows that initially all things were in the shape of divided atoms. Then they combined to form different entities. It is further evident from such a study that all the things in this immense universe are uniformly governed by the laws of nature. These observations clearly establish that the Creator of the universe is all-knowing and all-aware. He is all-powerful and dominant. So, who else can be there whom a man can treat as being worthy of worship?
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.