The Gnostic codex On the Origin of the World (possibly dating from near the end of the third century AD) states that during what is called the consummation of the age, the Sun and Moon will become dark as the stars change their ordinary course. Kings will make war with each other, and thunder will cause the world to be shaken. The corrupt Archons will mourn. The sea will be troubled by fighting of the kings who became drunk from the flaming sword. Finally, great thunder will come from Sophia, the woman in the firmament above the forces of Chaos. She will cast the corrupt gods into the abyss where they will fight each other until only their chief Yaldabaoth remains and destroys himself. Next the heavens of the Archons will collapse on each other before the Earth sinks into the abyss. Light will cover the darkness and eliminate it then form into something greater than anything that ever existed before. The source of the darkness will dissolve, and the deficiency will be taken from its root. Those who were not perfected in the unconceived one will receive glories in their realms and kingdoms of the immortals, but those who were will enter a kingless realm. All will be judged according to their deeds and gnosis.