يأجوج ومأجوج
Magog's appearance in the Quran and other Islamic sources is chiefly due to his apocalyptic renown as part of the pairing of Gog and Magog (Arabic: "Ya'juj wa Ma'juj"). In sura Al-Kahf ("The Cave", 18:83–98) of the Quran (early 7th century AD), an individual called Dhul-Qarnayn ("The Two-horned One") journeys to a distant land in a pass between two mountains where he finds people who are suffering from the mischief of Gog and Magog. Dhul-Qarnayn then makes a wall of copper and iron to keep Gog and Magog out, but warns that it will be removed in the Last Age. In sura 21, Al-Anbiyā (The Prophets), the wall is mentioned again: there Allah tells His Prophet (Muhammad) that there is a "prohibition upon [the people of] a city which We have destroyed that they will [ever] return, until [the dam of] Gog and Magog has been opened and thou shall see them, from every higher ground, descending."