The universe was created by a Big Bang. One of the stages of the big bang theory is that the universe was in gaseous state. Big bang nucleosynthesis tells us that after just one-second old universe was at a temperature of 10 million Kelvin and the whole universe was nothing but a cloud of Smoke and Plasma. Huge gaseous matter or clouds were present before the formation of the galaxies. To describe initial celestial matter, the word smoke is more appropriate than gas. Even now new stars are forming inside dark, cold molecular clouds from Material called Interstellar Medium, which is mostly hydrogen neutral and ionized, helium, dust particles surrounded by frozen water & other stuff like carbon, nitrogen, etc. All that in the heavens all stars and galaxies all have been formed from this same smoke.
This should be what is indicated by the Quran [41:11] "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."
The following verse refers to the fact that the earth and heavens were one fused, coherent and inseparable substance and then were ripped apart. This fact is supported by the Big Bang theory. Quran[21:30] "Do not those who disbelieve see that the heavens and the Earth were meshed together then We ripped them apart? And then We made of water everything living? Would they still not believe? "
The Splitting Asunder of the Earth and the Skies - Scientific Miracles of the Quran #2 (6:22 min YouTube Video OR Download)
Quran Mentions Big Bang 1400 Years Ago (57 sec min YouTube Video OR Download)
The Big Bang in the Quran? There Is No Clash (8:17 min YouTube Video OR Download)