In the book of Ezekiel, the pagan Magog people live "north of the World", and metaphorically represent the forces of Evil, which associates it with Apocalyptic traditions.
[3] An alternate identification derived from an examination of the order in which tribal names are listed in Ezekiel 38, "would place Magog between Cappadocia and Media.
[5] Jordanes' Getica (551) mentions Magog as ancestor of the Goths, as does the Historia Brittonum, but Isidore of Seville (c. 635) asserts that this identification was popular "because of the similarity of the last syllable" (Etymologiae, IX, 89).
Fenius Farsaid, Partholón, Nemed, the Fir Bolg, the Tuatha de Danann, and the Milesians are among Magog's descendants.
There is also a medieval Hungarian legend that says the Huns, as well as the Magyars, are descended from twin brothers named Hunor and Magor respectively, who lived by the sea of Azov in the years after the flood, and took wives from the Alans.
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.