In this rather silly contradiction in the Quran there seems to be a lot of confusion about what came first, the earth or the heavens.
In the second and forty-first books of the Quran it’s explicitly claimed that Allah created the earth before he created the heavens. But later in the seventy-ninth book the entire process is reversed, and heaven is created before he created the earth.
A retort I might hear is that Allah created seven heavens in total, meaning he didn’t have to create them all prior to creating the earth. He could’ve created a few heavens first, then the earth, and then the rest of the heavens. This apology would be false (according to the Quran). The contradiction is complete by reading the first two links; in them Allah created the “seven heavens” (no fewer than seven) after creating the earth.
Ok, maybe there are eight heavens then. We’ll just add an additional secret heaven to the list to make the contradiction disappear.