I think bogart once explained that the two horned one was referring to Alexander the Great or some such epic military leader from those times. Someone gave some really convincing argument towards it being a real historical figure, that the Quran bestowed mystical and eternal properties upon. A Persian? I cannot recall exactly. I remember being convinced of it. Either way, Mohammed sure was afraid of his armies, to claim they would rise up and overcome the earth at the end of time or whatever.
Some of identification of Muslim scholars was towards Alexander. Although this was based on Jewish and Christian scholars centuries before. It a mixture of myths combined into a new narrative. Part of Josephus' work which identifies Alexander's northern campaigns against the Scythians, a generic term at the time for "barbarians" to the north. OT identifies them as enemies of God or God's people, again people to the north although in this case it would be Assyrians and Babylonians. Christians identified them as Rome. When Rome became Christian the northern enemies of Roman become these people. The Romance of Alexander covers another part of the myth. It is also rooted in Persian and Parthian myth as well but it is their hero building the wall not Alexander. Today some people think of them as Russia and Israel. The names are used in such a vague manner in the OT that people can assign an identification to anyone north of them. Mongols, Huns, Russia, Goths, Thracian, Chinese, etc. It has been the name of a grandson of Noah, a people, a nation, an antichrist, etc.
There is a Christian version created during the conquest of eastern Christian territories by Muslims now called Pseudo-Methodius prophecy from the 7th century. Although the names are identified with Muslims rather than northern invaders. Widespread apostasy due to Jizya created a panic in many organized Churches. The collapse of the Christian Empires, West and East Rome, put the fear of God into many. Many couldn't understand the conquest of these lands by heretics and pagans so they thought it was the sign of the end times. There are medieval adaptation which the Mongols, Golden Horde, were these people.