Rewrite the entire text below, make it sound more coherent and better. Mention everything in great detail, including Hadithes and Quran Verses. and also add some additional good arguments:

''Earth created before stars
The elements in the Earth's crust and core were first formed in stars by nucleosynthesis. When those stars exploded as supernovas, they expelled the elements that were used in future solar systems such as Earth's own. Modern radiometric dating of meteorites and rocks from the Earth and Moon show that these bodies were formed at the same time as the sun and its other planets, 4.5 billion years ago. The Qur'an, on the other hand, describes the Earth as being fully formed before the stars.

Quran 41:12 states that lamps (or more specifically, stars in the similar verse Quran 37:6) were placed in the nearest of the seven heavens. But before there were seven heavens and while heaven was just smoke, the Earth already existed according to the previous verse, Quran 41:11, and the Earth's creation and completion in the preceding days is described in the verses immediately preceeding that one Quran 41:9-10, discussed in the previous section above. The creation sequence is thus as follows:

Heaven and completed Earth;
Seven heavens and each given its mandate;
The nearest heaven adorned with stars and guarded.
Then turned He to the heaven when it was smoke, and said unto it and unto the earth: Come both of you, willingly or loth. They said: We come, obedient. Then He ordained them seven heavens in two Days and inspired in each heaven its mandate; and We decked the nether heaven with lamps, and rendered it inviolable. That is the measuring of the Mighty, the Knower.
Quran 41:11-12
Quran 2:29 further confirms that heaven was only fashioned seven heavens when, according to the Quran, everything on Earth had been created.

He it is Who created for you all that is in the earth. Then turned He to the heaven, and fashioned it as seven heavens. And He is knower of all things.
Quran 2:29
The word lamps (masabeeha مَصَٰبِيحَ) in Quran 41:12 and Quran 67:5 with which Allah adorns (zayyanna زَيَّنَّا) the lowest heaven would need, of course, to include any luminous bodies such as the stars. These are termed as kawakib (كَوَاكِبِ) in Quran 37:6, a word that also appears in Joseph's dream (Quran 12:4) and the destruction of the heavens (Quran 82:1-2).

Some modern Muslim scholars attempt to reconcile the Qur'anic description with modern science by arguing that the word 'Then' in the verses above indicate does not indicate sequence, but that it instead means 'moreover'. This argument collides with the fact that these words (thumma in Quran 41:11 and Quran 2:29, and fa in Quran 41:12 - all translated as 'then') are generally used to indicate sequence. In other contexts, thumma was sometimes used to mean 'moreover'. This alternative usage, however, would always be unambiguous and clear in context, unlike in the passages quoted above, which evidently describe a stepwise process - the creation of the heavens subsequent to that of the Earth.

In another passage, Quran 79:27-33, the heaven (singular) has already been raised and proportioned as a ceiling before the earth is spread, pastures produced and mountains fixed. Ibn Kathir notes in his tafsir that Ibn 'Abbas said the Earth was created first before each of these events and that scholars intepreted the Arabic word dahaha (دَحَىٰهَآ) in verse 79:30 to refer to a specific kind of spreading that occured after everything on Earth had been created.[5] However, the passage nevertheless appears to contradict the sequence of Quran 41:9-12, in which the heaven is still "smoke" after Earth's sustinence and mountains have been placed.''