[1] Hanzalah was born in Badghis, and lived in the time of the Tahirids (820–872 AD), who gained independence of Khorasan from Abbasid Caliphate.
Here is a quatrain (the earliest ruba'i thus far quotable), which contains an odd conceit founded on an old superstition: the poet warns his sweetheart that it is futile for her to throw sipand or Syrian rue (Peganum harmala) seed on the fire to avert the influence of the evil eye.
یارم سپند گرچه بر آتش همی فکند از بهر چشم، تا نرسد مر ورا گزند او را سپند و آتش ناید همی به کار با روی همچو آتش و با خال چون سپند yāram sipand garčih bar ātaš hamī fikand az bahr-i čashm tā na-rasad mar wa-rā gazand ū rā sipand u ātaš n-āyad hamī bi kār bā rūy hamčū ātaš u bā xāl čūn sipand More potent, however, was the charm in another stanza ascribed to Hanzalah, for it inspired a simple ass-herd to win a crown.
Chancing one day to read four of Hanzalah's verses, this donkey-driver became fired with the ambition to make an attempt to gain the throne, and, rising triumphant over every obstacle, he finally grasped the sovereignty.
The inspiring stanza which served the ass-herd king, Ahmad of Khujistan,[2][3] as a motto for his life's success was this : مهتری گر به کام شیر در است شو خطر کن ز کام شیر بجوی یا بزرگی و عز و نعمت و جاه یا چو مردانت مرگ رویاروی mihtarī gar ba kām-i sher dar ast shaw khaṭar kun zi kām-i sher bi-jūy yā buzurgī u ʽizz u niʽmat u jāh yā chu mardānat marg rūyārūy Jackson, A. V. Williams.