The Bakhtiyar-nama is a medieval Iranian romance, which both has a prose and verse version. The earliest surviving version of the work is in the Arabic prose text of ÿAjÃÂþib al-bakht fë qiṣṣat al-aḥdë ÿashar wazëran wa-màjÃÂra lahum maÿ Ibn al-Malik ÃÂzÃÂdbakht ("Wonders of the age, or the story of the eleven viziers and what befell them with prince Azadbakht"), written in 1000. The earliest surviving New Persian version is the RÃÂḥat al-arvÃÂḥ ("Souls' repose") by the poet Shams al-Din Muhammad Daqa'iqi Marvaz, in a manuscript written in 1264/5. It has been suggested that the story originates from a Middle Persian book, but this remains unclear.