the KJV says in Gen 1:1 "In the beginning God created the heaven and the earth." but what happens when we remove our abstract english language and go back to the what the literal words say.... "in the summit Elohiym fattened the skies and the land". Yes, God did not "create" he fattened or filled up that which was already there. The text itself tells us "the earth was without form, and void" then God spoke into being light, the first day.
So on the first day earth pre-existed formless and void and we can infer from the text that the heavens too pre-existed also formless and void. The firmament was created the second day but there was no stars, sun or moon as this was all created on day 4. Day 4 the heavens were "filled up".
So where did the formless earth and heaven come from? As Theists our answer clearly is God but the creation account doesn't find this to be important enough information.
So on the first day earth pre-existed formless and void and we can infer from the text that the heavens too pre-existed also formless and void. The firmament was created the second day but there was no stars, sun or moon as this was all created on day 4. Day 4 the heavens were "filled up".
So where did the formless earth and heaven come from? As Theists our answer clearly is God but the creation account doesn't find this to be important enough information.