Summary
In Egypt the book of the night is called the Amduat, "that which is in the underworld". It divides the night into twelve hours and draws Ra, the sun, in his barque with its crew on a river running through the middle of the earth. In the sixth hour he is united with the body of Osiris (Egyptian Wsir); in the seventh Apophis (Apep) tries to ground the barque on his sandbank, and he is overcome in the last hours before sunrise; at the end of the night he is reborn as the scarab Khepri. Its oldest copy is in the tomb of Thutmose I, and its aim is knowledge: whoever knows these images becomes a well-equipped spirit able to enter the Duat and leave it. The Book of Gates divides the same night into twelve hours, with a gate between each hour and the next guarded by snakes and a warder, through which no one passes without the password; in it Ra dies every night and his dead body is carried through the underworld in the boat, and in the twelfth hour Nun rises out of the primeval waters supporting the boat on his upraised arms.
In the ninth tablet of the epic Gilgamesh reaches the twin mountains of Māšu, which daily guard the rising of the sun, their tops at the fabric of the heavens and their bases in the underworld; at their gate scorpion-men "at both sunrise and sunset guard the sun". Gilgamesh takes "the path of the sun" inside the mountain, twelve double-hours in which the darkness is dense and there is no light, and he cannot see what is behind him, until at the twelfth he emerges ahead of the sun into a garden whose trees are precious stones. Afterwards Siduri tells him that only Shamash, the sun, crosses the ocean. ORACC says that Shamash emerged at sunrise from his underground sleeping chamber, and that a second-millennium prayer describes his return in the evening: his gatekeeper salutes him and opens the door to his chambers, and he settles down to a dinner cooked by his wife Aya.
Among the Greeks Athenaeus quotes Stesichorus: "Now the Sun, begotten of Hyperion, was descending into his golden cup, that he might traverse the Ocean and come to the depths of dark and awful night, even to his mother and wedded wife and beloved children"; and Mimnermus, that Helios, the sun, has toil all his days with no surcease for his horses or himself, and when Dawn has risen a winged hollow couch of gold made by Hephaestus bears him across the waves while he sleeps, from the land of the Hesperides to the country of the Aethiopians, where his chariot and horses wait. He quotes Pherecydes too: Heracles drew his bow against the Sun, and the Sun gave him the golden cup that carried him with his horses at night over Ocean to the east, and Heracles journeyed in it to Erytheia.
In all three peoples the sun leaves the eye but does not cease: at night it has a road, a vessel, a gate and a guard, and then it returns to the east. We read the three names by their nature first: Ra the sun, Shamash the sun in Arabic letters, Helios the sun, all of them for us images pointing to the One God who sees all things; in the Qur'an the sun "runs toward its stopping point; that is the determination of the Exalted in Might, the Knowing".
Parallels
Twelve hours. The Amduat and the Book of Gates divide the night into twelve hours, and Gilgamesh crosses the inside of Māšu in twelve double-hours, counting them one by one while the darkness does not change, until at the twelfth he emerges ahead of the sun. At the Waters of Death the boatman has him take pole after pole up to the twelfth, as on the ferryman page. In Egypt and Mesopotamia the night is a road measured in hours, not a void.
The gate and the guard. In the Book of Gates snakes and a warder stand at every gate, and there is a password for whoever passes. At the gate of Māšu stand the scorpion-men, "whose terror was dread and glance was death", guarding the sun at its going out and its coming in, and Gilgamesh does not enter until the scorpion-man says: "may the gate of the mountain open before you!" In the Babylonian prayer the gatekeeper opens Shamash's door to his chambers.
The hero takes the sun's road. Gilgamesh walks the path of the sun to the far edge of the earth, then crosses the ocean that only Shamash crosses. Heracles takes the Sun's cup and crosses Ocean in it to Erytheia in the far west. In both stories the hero reaches what lies beyond the world's edge by the road the sun travels when it is out of sight; Heracles takes the cup after drawing his bow against the Sun, and Gilgamesh enters the mountain with its guard's leave.
Night as a house and a rest. Shamash goes to his chambers and Aya's dinner; Stesichorus's Sun goes to his mother, wife and children; Mimnermus's Sun sleeps in his golden couch on the waves. In Egypt the verb said of the sun when it sets is ḥtp, to be content, to rest, as on the sun's journey page. In all three peoples sunset is a return home.
The dead on the sun's road. Whoever knows the images of the Amduat becomes a spirit that enters the Duat and leaves it with Ra. ORACC says that the spirits of the dead entered the netherworld through a passage on the horizon in the far west, in some traditions the same entrance that led to Shamash's dwelling. In the Sumerian Gilgameš, Enkidu and the Netherworld Enki tells Utu, the sun, to open a hole in the netherworld and bring up Gilgameš's servant, and he opens it and brings up Enkidu's ghost. The sun that goes down every night is the one that knows the way between the living and the dead.
Divergences
Ra's night in Egypt is death and birth: his dead body is carried in the barque, he is united with the body of Osiris at midnight and born at morning as a scarab, and on his way is an enemy, Apophis, who must be overcome every night. Shamash has no enemy on his night road in these texts, and no death: he goes into his house, eats and sleeps, then comes out, and the mountain he passes through is a dark road, not a battlefield.
The Greek sun of Stesichorus and Mimnermus does not go down into the underworld at all. It crosses Ocean, the river round the earth, from west to east, in a cup or a couch, asleep. When Helios threatens in the Odyssey to go down to Hades and shine among the dead, it is a threat to do what he does not ordinarily do, as on the sun's journey page. Odyssey 12.383. The Egyptian barque is a Nile boat with a crew; the Greek cup is a drinking vessel made by Hephaestus, which the Sun lends to a hero.
The Greek tellings differ among themselves about the vessel: a cup in Stesichorus, Pherecydes and Aeschylus, a hollow couch in Mimnermus, and a cauldron in the poet of the Titanomachy, as Athenaeus reports from Theolytus.
Shared Substrate
The names by their nature. Ra's name in Egyptian, rꜥ, in full spelling rꜥw, is the sun itself, and his page reads it as Arabic raʿā: the shepherd who keeps and watches what he rises on, then sets and returns in his time. Shamash is Akkadian šamšu; remove the case ending and Arabic shams remains in letters and sense. Helios is read on his page as al-hāll, from the shining of a face or of lightning, with hāla, the circle of light round the sun, heard in it. The Duat is read on its page as al-dār, from dāra yadūru, to go round and return to where one began: the abode of the dead, and the road round which the sun goes after setting until it returns to its rising. Ra, Shamash, Helios, Duat.
Going in and setting, and the twin mountains. Tablet IX says ana aṣê šamši u ereb šamši inaṣṣarū šamšī-ma: at both sunrise and sunset they guard the sun. In inaṣṣarū is the verb naṣāru, to guard, which Brown, Driver and Briggs set beside Hebrew nāṣar, to watch and keep, and beside the Arabic word for "look at, consider, examine", naẓara: the guard is the one who watches. And erēbu, to enter, said of the sun's setting, is Arabic gharaba, as the sun's journey page shows. The mountain's name, Māšu, is the Akkadian word for a twin, māšu in the Akkadian dictionary, and the epic calls the place "Māšu's twin mountains". The Qur'an speaks of two easts and two wests for the sun: "Lord of the two sunrises and Lord of the two sunsets".
The sun that asks leave. In the Qur'an Dhu al-Qarnayn reaches "the setting of the sun" and finds it "setting in a spring of dark mud", then "the rising of the sun" and finds it rising on a people with no shelter from it: the man who reached the far west saw what coast-dwellers see, the sun going down into the water, as it goes down into Ocean among the Greeks. In Ṣaḥīḥ al-Bukhārī the Prophet asks Abū Dharr at sunset: "Do you know where it goes?", then says: "It goes till it prostrates itself beneath the Throne and asks permission, and it is permitted"; one day it will not be permitted and will be told to return whence it came, and it will rise from its setting; "and that", he says, "is His saying: and the sun runs toward its stopping point". The night journey here is prostration and asking leave, not kingship or battle. That is how we read the pictures of all three peoples: Ra, Shamash and Helios are images of the sun that rises over people and sees what they do, then sets and returns in its time, so they point to the One God who sees all things and appoints its course. The ancient texts attest the name, the sun and the worship; this is our reading of the image.