One of the most fascinating aspects of Ezekiel 38-39 is that Islam has its own version of the Battle of Gog and Magog, called the War of Yajuj and Majuj. In two places the Koran specifically mentions Yajuj and Majuj by name (18:96; 21:96). In Islamic teaching on the end times, 10 major signs signal the approach of the end. Gog and Magog is one of these signs.
According to Islamic teaching (from the Koran and its commentaries), Gog and Magog are 2 groups of Turks that were spreading corruption through the earth during the time of Abraham. Finally, to keep them in check, they were enclosed behind a great barrier. Though they have tried in vain for centuries to climb over or dig under the wall, they will not be able to do so until Allah decrees their release. Then the barrier will collapse, and Gog and Magog will pour out in all directions, rushing into the land of Israel to attack the Muslims there. The vast invading armies will drain the Sea of Tiberius (Galilee) for drinking water and will then attack Jerusalem. When Jesus (according to Muslim teaching) prays against Gog and Magog, Allah will wipe them out by means of some kind of disease or plague. The disease is described as either infections, lethal boils or a disease that eats the flesh from their bones. After God's victory, the great number of slain bodies of the invading army will provide food for predatory animals and birds. It will take 7 years to burn the weapons, and God will cleanse the earth with rain to rid it of the pollution created by the overwhelming slaughter (Sura 18).
Mohammed clearly “borrowed” a lot of this from Ezekiel 38-39 to fit his own ends. What's interesting is that although Muslims believe in the prophecy of Gog and Magog, they are ignorant of the fact that the nations mentioned in prophecy that will be destroyed by God are all Muslim nations today, with the exception of Russia. One of their ten great signs of the end will actually be fulfilled by them when they attack Israel in the last days. Gog and Magog are a vast group of Muslim nations.