ʿAbd-Al-Ṣamad, a dehqan in Transoxiana, told Nezami of how the poet Rudaki was given compensation for his poem extolling the virtues of Samanid Amir Nasr b.
The following year, he lived in poverty in Nishapur, and thus went to Tus with the goal of gaining the favour of the Seljuk prince Ahmad Sanjar, who governed Khorasan.
Nizami accompanied the Ghurid ruler Ala al-Din Husayn (r. 1141–1161) in his war against Sanjar, and after the former's defeat at a battle near Herat in 1152/3, he hid himself in the city for a period.
Nizami most likely composed the Chahar Maqala a few years later (in 1156), which he dedicated to the Ghurid prince Abu'l-Hasan Husam al-Din Ali.
[7] He reports in the work that he spent time not only in his native Samarqand, but also in Herat, Tus (where he visited Ferdowsi's tomb and gathered material on the great poet), Balkh, and Nishapur, where he lived for perhaps five years.
Also Nizámí-i'Arúdí’s scholastic Islamic ideology holds that a langue or a kind of metanarrative keeps things in order and is surrounded by smaller objects.