Quran’s Dhul Qarnayn and the Alexander Legends: The Sun in the Muddy Spring and the Wall of Gog and Magog
2. Quran’s Dhul Qarnayn and the Alexander Legends: The Sun in the Muddy Spring and the Wall of Gog and Magog
Alexander the Great with Horns on Coin from c. 297-281 BC (“Dhul Qarnayn” = “The Two-Horned One”)

“The most ancient material evidence for the image of the horned king are coins minted by Alexander’s successors, the Diadochi, and, especially, in Lysimachus’s Thrace (r. 301–281 BCE) and Ptolemy’s Egypt (r. 305–282 BCE). These coins circulated from 297 BCE. Their dissemination was so conspicuous as to provoke the minting of imitations by rulers in the Arabian Peninsula.” p. 138
“The symbiosis of the two motifs of Alexander’s horns and of the iron gate into the elaboration of the legend of the eschatological gate is reflected in the Qurʾānic pericope of Ḏū-l-Qarnayn.” p. 199, n. 42 Tesei, “The Syriac Legend of Alexander’s Gate,” pp. 138, 199
“They will ask thee of Dhu’l-Qarneyn [The Two-Horned One]. Say: I shall recite unto you a remembrance of him. Lo! We made him strong in the land and gave him unto every thing a road.”
“the Lord said to him, ‘Behold, I have magnified thee above all kingdoms, and I have made horns of iron to grow on thy head that thou mayest thrust down the kingdoms of the earth with them’”
1. Quran
“And he followed a road till, when he reached the setting-place of the sun, he found it setting in a muddy spring, and found a people thereabout.” Quran 18:85-86
Quran 18:86 in Arabic word for word creates two independent problems:
- First, Dhul Qarnayn reached (balagha) a location: the setting place of the sun (maghriba l-shamsi).
- There, he found (wajada) the sun setting in a muddy spring (ʿaynin ḥami-atin). And he found (wajada) a community near it.
2. Hadith
Muhammad directly says in a hadith that the sun sets in a spring:
I was with the Prophet ﷺ riding on a donkey, and it had a saddlecloth or a blanket on it. He said to me, “O Abu Dhar, do you know where this (the sun) sets?” I said, “Allah and His Messenger know best.” He said, “Indeed, it sets in a hot spring and travels until it prostrates itself to its Lord beneath the Throne. When its time to rise comes, Allah gives it permission to rise, and it rises. And when it is time for it to set from where it rises, it is prevented and it utters: ‘O Lord! My course is far, so give me permission.’ So, Allah lets it rise from the place where it sets. That is the time when the soul’s faith will not benefit it.” Musnad Ahmad 21459 (al-Arna’ut: Authentic Chain) Sahih al-Jami 7026 (al-Albani: Authentic)
3. The Legends of Alexander the Great
The Quran’s Dhul Qarnayn story begins, “They will ask thee of Dhu’l-Qarneyn” Quran 18:83, showing that people already knew of the story. Scholars trace the Quranic character Dhul Qarnayn to legends about Alexander the Great circulating around Muhammad’s time, such as the Syriac Alexander Legend, which shares a similar cosmology:
“And king Alexander was afraid and retired, and he knew that it was impossible for them to cross over to the place where were the ends of the heavens. So the whole camp mounted, and Alexander and his troops went up between the fetid sea and the bright sea to the place where the sun enters the window of heaven; for the sun is the servant of the Lord, and neither by night nor by day does he cease from his travelling. The place of his rising is over the sea, and the people who dwell there, when he is about to rise, flee away and hide themselves in the sea, that they be not burnt by his rays; and he passes through the midst of the heavens to the place where he enters the window of heaven... And when the sun enters the window of heaven, he straightway bows down and makes obeisance before God his Creator; and he travels and descends the whole night through the heavens, until at length he finds himself where he rises.” Budge, Syriac Alexander Legend, p. 148
Yale scholar Kevin van Bladel:
“The water in the place where the sun sets is ‘fetid’ in both texts, a perfect coincidence of two uncommon synonyms (Syriac saryā, Arabic ḥamiʾa).” van Bladel, “The Alexander Legend in the Qur’ān 18:83-102,” p. 181
4. The Wall of Gog and Magog
Dhul Qarnayn built an iron and copper wall between two mountains to seal off the tribes of Gog and Magog until doomsday. This wall is nowhere to be found.
“Then he followed a road till, when he came between the two mountains, he found upon their hither side a folk that scarce could understand a saying. They said: O Dhu’l-Qarneyn! Lo! Gog and Magog are spoiling the land. So may we pay thee tribute on condition that thou set a barrier between us and them? He said: That wherein my Lord hath established me is better (than your tribute). Do but help me with strength (of men), I will set between you and them a bank. Give me pieces of iron - till, when he had levelled up (the gap) between the cliffs, he said: Blow! - till, when he had made it a fire, he said: Bring me molten copper to pour thereon. And (Gog and Magog) were not able to surmount, nor could they pierce (it). He said: This is a mercy from my Lord; but when the promise of my Lord cometh to pass, He will lay it low, for the promise of my Lord is true. And on that day We shall let some of them surge against others, and the Trumpet will be blown. Then We shall gather them together in one gathering.” Quran 18:92-99
Also in Syriac Alexander Legend
“He said to them, ‘Who are their kings?’ The old men said: ‘Gôg and Mâgôg” Budge, Syriac Alexander Legend, p. 150
“The king said, ‘Let us make a gate of brass and close up this breach.’ His troops said, ‘As thy majesty commands we will do.’ And Alexander commanded and fetched three thousand smiths, workers in iron, and three thousand men, workers in brass. And they put down brass and iron, and kneaded it as a man kneads when he works clay.” Budge, Syriac Alexander Legend, p. 153
“And the Lord will gather together the kings and their hosts which are within this mountain, and they shall all be assembled at His beck, and shall come with their spears and swords, and shall stand behind the gate, and shall look up to the heavens, and shall call upon the name of the Lord, saying, ‘O Lord, open to us this gate.’ And the Lord shall send His sign from heaven and a voice shall call on this gate, and it shall be destroyed and fall at the beck of the Lord, and it shall not be opened by the key which I have made for it.” Budge, Syriac Alexander Legend, p. 154
“And when the Huns have gone forth, as God has commanded, the kingdoms of the Huns and the Persians and the Arabs, the twenty-four kingdoms that are written in this book, shall come from the ends of the heavens and shall fall upon one another, and the earth shall melt through the blood and dung of men.” Budge, Syriac Alexander Legend, p. 155
Authentic hadiths about Gog and Magog:
Gog and Magog Dig Every Day and Will Break Through When They Say “Inshallah”
“It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said: Gog and Magog people dig every day until, when they can almost see the rays of the sun, the one in charge of them says: ‘Go back and we will dig it tomorrow.’ Then Allah puts it back, stronger than it was before. (This will continue) until, when their time has come, and Allah wants to send them against the people, they will dig until they can almost see the rays of the sun, then the one who is in charge of them will say: ‘Go back, and we will dig it tomorrow if Allah wills.’ So they will say: ‘If Allah wills.’ Then they will come back to it and it will be as they left it. So they will dig and will come out to the people, and they will drink all the water. The people will fortify themselves against them in their fortresses. They will shoot their arrows towards the sky and they will come back with blood on them, and they will say: ‘We have defeated the people of earth and dominated the people of heaven.’ Then Allah will send a worm in the napes of their necks and will kill them thereby.’” The Messenger of Allah (ﷺ) said: “By the One in Whose Hand is my soul, the beasts of the earth will grow fat on their flesh.” Sunan Ibn Majah 4080
Muhammad’s Fear: Already a Finger-Sized Hole in the Wall of Gog and Magog
“That the Prophet (ﷺ) came to her in a state of fear saying, ‘None has the right to be worshiped but Allah! Woe to the Arabs because of evil that has come near. Today a hole has been made in the wall of Gog and Magog as large as this.’ pointing with two of his fingers making a circle. Zainab said, ‘I said, O Allah’s Messenger (ﷺ)! Shall we be destroyed though amongst us there are pious people?’ He said, ‘Yes, if evil increases.’” Sahih al-Bukhari 3598
999 Gog and Magog for Every 1 Muslim in Hell
The Prophet (ﷺ) said, “On the day of Resurrection Allah will say, ‘O Adam!’ Adam will reply, ‘Labbaik our Lord, and Sa`daik’ Then there will be a loud call (saying), Allah orders you to take from among your offspring a mission for the (Hell) Fire.’ Adam will say, ‘O Lord! Who are the mission for the (Hell) Fire?’ Allah will say, ‘Out of each thousand, take out 999.’ At that time every pregnant female shall drop her load (have a miscarriage) and a child will have grey hair. And you shall see mankind as in a drunken state, yet not drunk, but severe will be the torment of Allah.” (22.2) (When the Prophet (ﷺ) mentioned this), the people were so distressed (and afraid) that their faces got changed (in color) whereupon the Prophet (ﷺ) said, “From Gog and Magog nine-hundred ninety-nine [999] will be taken out and one [1] from you. You Muslims (compared to the large number of other people) will be like a black hair on the side of a white ox, or a white hair on the side of a black ox, and I hope that you will be onefourth of the people of Paradise.” On that, we said, “Allahu-Akbar!” Then he said, “I hope that you will be) one-third of the people of Paradise.” We again said, “Allahu-Akbar!” Then he said, “(I hope that you will be) one-half of the people of Paradise.” So we said, Allahu Akbar.” Sahih Bukhari 4741

