Summary
In a seventh-century BCE Assyrian text (KAR 307) there are three heavens one above another, each with its stone: "The upper heaven of luludanitu stone is Anu's. He settled the 300 Igigi there"; the middle heaven of saggilmud stone is of the Igigi, and "Bel sits there in a high temple on a dais of lapis lazuli and has made a lamp of electrum shine there"; "the lower heaven of jasper is of the stars. He drew the constellations of the gods on it." Beneath lie three earths, and the souls of mankind reside on the upper one.
Incantations in the Sumerian language have the phrase "seven heavens and seven earths"; one medical incantation opens: "Seven heavens and seven earths, seven firmaments, O Utu who determines the destinies", and closes: "Be exorcised by heaven, be exorcised by earth." Horowitz, Mesopotamian Cosmic Geography, 1998, p. 214.
The Qur'an says: "Have you not seen how God created seven heavens in layers (ṭibāqan)?", "It is God who created seven heavens, and of the earth the like of them; the command descends among them", and "We adorned the nearest heaven with lamps and as a guard." Qur'an 71:15, 65:12, 41:12.
So the three sets of texts place heavens above the earth one over another, and put the stars in the lowest. They differ in what the heavens are: in Assyria the dwellings of worshipped names, in the Qur'an a creation among the Creator's signs.
Parallels
Layers. In these texts heaven is not a single dome. KAR 307 has upper, middle and lower heavens, and Horowitz argues that each stone is the floor of a level, with open space between them as between the earth's surface and the lower heaven, and that each stone floor was visible from below and served as a roof for the region beneath. The text Bīt mēseri also has three heavens, those of Anu, Enlil and Ea. The Qur'an has "seven heavens in layers", "seven paths" and "seven strong ones".
Stars in the lowest heaven. In KAR 307 the lower heaven is "of the stars", with the constellations drawn on it; in the Qur'an "We adorned the nearest heaven with lamps". In the Babylonian Talmud Resh Lakish counts seven heavens by name, the second being Rakia, "in which the sun, moon, stars and zodiac signs are fixed".
Earths answering heavens. Below the heavens of KAR 307 lie three earths; the Sumerian incantations set "seven earths" beside "seven heavens"; the Qur'an says "and of the earth the like of them". Horowitz noted the parallel, cited Qur'an 65:12 and 78:12, and said there is no evidence of a direct connection between these later traditions and a possible Sumerian one.
Divergences
What the heavens are. The heavens of KAR 307 are dwellings: the upper for Anu and the three hundred Igigi, the middle where Bel sits on his dais, and in the lowest earth six hundred Anunnaki are shut up. Bel in this text is Marduk, as Horowitz shows: in KAR 307 as in Enūma eliš Marduk settles Ea in the Apsu, mankind on the earth's surface and groups of worshipped names in heaven and earth, and arranges the stars in heaven. The Qur'an does not make the heavens the dwellings of worshipped names; it makes them a creation people are invited to look at: "You see no discrepancy in the creation of the Most Merciful; so turn your sight again: do you see any rift?" Marduk, Horowitz, p. 6, Qur'an 67:3.
The number. The Akkadian texts that count the heavens, KAR 307 and Bīt mēseri, make them three; the seven is in the Sumerian incantations. Horowitz says that no surviving Mesopotamian text preserves a cosmos with more than three heavens and earths, that the Akkadian translator of the Utukkū lemnūtu incantation understood "in heaven seven, in earth seven" as seven demons rather than seven heavens, and that seven in Sumerian can mean "all". So the Mesopotamian seven is an incantation phrase whose meaning is not certain, while in the Qur'an and the Talmud it is a count of created heavens.
The material. The heavens of KAR 307 are made of named stones, known by their colours. The Qur'an names no material for the heavens and describes them as built and strong: "and We built above you seven strong ones".
Shared Substrate
The words themselves are shared. Heaven is Akkadian šamû, Hebrew šāmayim and Arabic samāʾ, which Brown, Driver and Briggs treat as one root, and which Lane derives from samā, to be high, rise. The number is Akkadian sebe and Arabic sabʿ, which the project's sound-law file traces to *šabʿ-. The stone of the lower heaven, ašpû, is heard by an Arabic ear as yashb, jasper, as on the separation of heaven and earth page. The owner of the upper heaven is Anu, whose name the Babylonian essay reads from ʿanā, to be high: the lord of height lives in the highest. Bel is Akkadian bēlu, "lord", the Hebrew and Arabic baʿl in Brown, Driver and Briggs.
The Qur'anic word ṭibāqan describes the picture Horowitz draws for the stones. In Lane ṭabaq is a cover or lid put over a vessel, and ṭābaqa al-naʿl is to sew one sole upon another; he quotes al-Bayḍāwī on the verse of al-Mulk that ṭibāqan means placed one above another, and the Miṣbāḥ that each heaven is like a ṭabaq, a cover, to another. That is what Horowitz says of each heaven's floor in KAR 307: a roof for the region beneath.
Three things are attested here: KAR 307 with its three heavens, the phrase "seven heavens and seven earths" in Sumerian incantations, and the seven heavens of the Qur'an and the Talmud. The kinship of the words šamû and samāʾ, sebe and sabʿ, bēlu and baʿl is attested in the lexicons. The road between the Sumerian incantation and the Qur'an's seven heavens is not known, and Horowitz does not claim it. We read what joins the texts in this: someone looking up from the earth sees the moon hide the stars and the planets move at different distances, and so sees layers rather than one dome. Then the meaning differs: Assyria fills the layers with worshipped names, and the Qur'an makes them a creation to which the eye is sent back.