The heavens and the earth is a set phrase meaning " everything ", ., the cosmos . This was made up of three levels, the habitable earth in the middle, the heavens above, an underworld below, all surrounded by a watery "ocean" of chaos as the Babylonian Tiamat .  The earth itself was a flat disc, surrounded by mountains or sea. Above it was the firmament , a transparent but solid dome resting on the mountains, allowing men to see the blue of the waters above, with "windows" to allow the rain to enter, and containing the sun, moon and stars. The waters extended below the earth, which rested on pillars sunk in the waters, and in the underworld was Sheol , the abode of the dead.