Iskandarnameh
The Iskandarnameh (Book of Alexander), is the oldest Persian recension of the Alexander Romance tradition, anonymous and dated to some time between the eleventh and fourteenth centuries, although recently its compilation has been placed in the eleventh century by Evangelos Venetis, during the reign of Mahmud of Ghazni in the court of the Ghaznavid Empire. Alexander is described as a Muslim king and prophet and is identified with the conqueror named Dhu al-Qarnayn in the Quran. This identification is also witnessed in the Arabic recensions of the Alexander romance, such as the Qissat al-Iskandar and the Qissat Dhulqarnayn. As such, he is double-horned and builds the famous Gates of Alexander against Gog and Magog.
The composition of the Iskandarnameh was influenced by earlier Persian compositions, such as the Shahnameh of Ferdowsi.