Assalamualykum, Allah says in surat Fussilat:
Say, "Do you indeed disbelieve in He who created the earth in two days and attribute to Him equals? That is the Lord of the worlds. And He placed on the earth firmly set mountains over its surface, and He blessed it and determined therein its [creatures'] sustenance in four days without distinction - for [the information] of those who ask. Then He directed Himself to the heaven while it was smoke and said to it and to the earth, "Come [into being], willingly or by compulsion." They said, "We have come willingly." And He completed them as seven heavens within two days and inspired in each heaven its command. And We adorned the nearest heaven with lamps and as protection. That is the determination of the Exalted in Might, the Knowing. 41:9-12
Allah here says he created earth first, then created the rest of the universe ? We all know that that would not be true, as scientifically the universe is created first, afterwards are planets including earth, there are many celestial bodies created before earth.
So can someone explain to me what Allah meant? May Allah give you hidaya.