Hakim Iranshah ibn Abi al-Khayr (Persian: حکیم ایرانشاه بن ابی الخیر), commonly known as Iranshah (Persian: ایرانشاه; or Iranshan), was a Persian poet who lived in the Seljuk Empire in the 11th and 12th centuries.
Iranshah is the author of two epic poems, Kush-nama and Bahman-nama, both written in the same style as the Shahnama of Ferdowsi (died 1019/25). Although no mention of its author is made in either of the works, the Mujmal al-tavarikh va al-qisas (written in 1126) credits Iranshah with its composition. Iranshah most likely wrote the Bahman-nama between 1092 and 1108, as indicated by mentions of historical events, and reverence of the sultans Mahmud I and Muhammad I Tapar . Set in the mythological Iranian world, the work tells the adventures of Kay Bahman, the son of Isfandiyar. Iranshah states that the Bahman-nama was inspired by the ceaseless battles and wars of his patron, Muhammad I Tapar, which reminded him of the ceaseless battles between Bahman and Rostam's family. This implies that the work was also written to serve as advice for solving the socio-political issues of the time.
The Kush-nama was written between 1108 and 1111, and is referred to as Qessa-ye Kush-e Pil-Dandan ("the tale of Kush the Tusked") and Akhbar-e Kush-e Pil-Dandan ("accounts of Kush the Tusked") in the Mujmal al-tavarikh. Also mythological in nature, it tells the story of Kush the Tusked (or Pil-gush, "The Elephant-eared"), the son of Kush (brother of the evil king Zahhak).
The modern Iranian historian Jalal Matini ranks Iranshah as the third best writer of epic poetry among his contemporaries, behind Ferdowsi's Shahnama and Asadi Tusi's Garshasp-nama.
The correct spelling of Iranshah's name is uncertain. He is called "Iranshan" in two out of four books of the Mujmal al-tavarikh, while in the other two he is called "Iranshah" and "Inshah." Modern historians refer to him as either Iranshah or Iranshan. He was a Muslim, albeit it is unknown if he was either Sunni or Shi'i.