Some of these traditions, including Jainism, also have a concept of seven earths or seven underworlds both with the metaphysical realms of deities and with observed celestial bodies such as the classical planets and fixed stars.
In Jewish cosmologies (albeit absent from the Hebrew Bible), the number of heavens could range from 3 to 365, with 7 being the most popular figure.
Ancient observers noticed that these heavenly objects (the Moon, Mercury, Venus, the Sun, Mars, Jupiter, and Saturn) moved at different paces in the sky both from each other and from the fixed stars beyond them.
Unlike comets, which appeared in the sky with no warning, they moved in regular patterns that could be predicted.
The concept of seven heavens as developed in ancient Mesopotamia where it took on a symbolic or magical meaning as opposed to a literal one.
[10] Instead, after a person died, his or her soul went to Kur (later known as Irkalla), a dark shadowy underworld, located deep below the surface of the Earth.
Along the way, he encounters vividly described populations of angels who torment wrongdoers; he sees homes, olive oil, and flowers.
Over the course of the Middle Ages, Christian thinkers expanded the ancient Mesopotamian seven-heaven model into a system of ten heavens.
This cosmology, taught in the first European universities by the Scholastics, reached its supreme literary expression in The Divine Comedy by Dante Alighieri.
[20] The Quran and Hadith frequently mention the existence of seven samāwāt (سماوات), the plural of samāʾ (سماء), meaning 'heaven, sky, celestial sphere', and cognate with Hebrew shamāyim (שמים).
The seven heavens are not final destinations for the dead after the Day of Judgment, but regions distinct from the earth, guarded by angels and inhabited by souls whose abode depends on their good deeds (fasting, jihad, Hajj, charity), with the highest layer, the closest to God.
[32] The Gnostic text On the Origin of the World states that seven heavens were created in Chaos by Yaldabaoth below the higher realms, and each of them are ruled over by an Archon.
[34] In Mandaeism, a series of maṭartas, or "toll houses," are located between the World of Light (alma ḏ-nhūra) from Tibil (Earth).
[37] Alternatively, the Seven Heavens can also be seen as corresponding to the Seven Planets, who form part of the entourage of Ruha in the World of Darkness.