Abu Dulaf al-Ijli

Abū Dulaf al-Qāsim ibn ‘Īsā ibn Ma‘qil ibn Idrīs al-‘Ijlī () was a military commander under the Abbasid caliphs al-Ma’mūn and al-Mu‘taṣim. His father had commenced construction of the city of Karaj in Jibal, the tribal residence of the Banū Ijlī; as governor, Abū Dulaf completed its construction. He was an illustrious man of letters and science, a brilliant poet, a musical composer, a talented vocalist, and an expert on the Bedouin dialect. His generosity was proverbial. He died at Baghdad in 226 or 225 AH [840–2 AD].
Isḥāq al-Nadīm gives the quote from Abū Dulaf: "Handwriting is the garden of the sciences."
Life.
His full (genealogical) name was "Abū Dulaf" "al-Qāsim ibn Īsā ibn Idrīs ibn Ma’qil ibn ‘Umayr ibn Sheikh ibn Muawia ibn Khosāi ibn ‘Abd al-Uzza ibn Dulaf ibn Jushm ibn Kais ibn Sa’ad ibn ‘Ijl ibn Lujaym ibn Sa’ab ibn ‘Alī ibn Bakr ibn Wā’il ibn Qasit ibn Hinb ibn Afsa ibn Dumī ibn Jadila ibn Asad ibn Rabia ibn Nizar ibn Ma’ad ibn Adnān al-Ijlī". 
He was a lord and emir of his people. His grand-uncle, ‘Īsā ibn Ma’qil, who adopted Abū Muslim al-Khurāsānī was his grandfather Idrīs's brother. The emir Abū Naṣr ‘Alī ibn Māqūla, author of "Kitāb al-Ikmāl" ('Book of Completion'), was his descendant. Quṭrub the Grammarian of the Baṣrah school tutored his sons, as did Quṭrub's son, al-Ḥasan. 
From an early age Abū Dulaf's poetic talents won him favour with the Abbāsid caliph Harun al-Rashid, who appointed him governor of Jabal. He suppressed raids by nomadic Kurds and Bedouin Arabs against the city of Karaj, and captured the famous qarqur brigand that operated in the area. When Hārūn died in 809 AD and civil war broke out between the caliph's sons, Al-Amin and Al-Ma'mūn, Abu-Dülaf supported al-Amin. However Al-Amin's general Alī ibn ‘Īsā ibn Mahan was killed by the forces of Al-Mamūn led by Tahir ibn Ḥusayn, and Abū-Dulaf retreated to Karaj, where he pledged to remain neutral yet refused to swear allegiance to Al-Mamūn while al-Amīn was alive. On al-Amin's death in 813 Al-Ma'mūn forgave him and he was reappointed governor of Jabal. As governor during the successive reigns of al-Ma’mūn, Al-Mu'tasim and the emir Al-Wāthiq, he expanded the territory to include Isfahan and Qazvin, and repelled Daylamite attacks. He served in the campaign against Babak Khorramdin in Azerbaijan (836/837), under Khaydhar ibn Kawus al-Afshin. As governor in Damascus he narrowly escaped a plot against him by Al-Afshin, receiving a warning from the qāḍī Ibn Abī Dā’ūd. He then made the pilgrimage to Mecca and died in Baghdad on 839/840.
Khallikān relates an account that speaks to his Shiite and Mutazilite sympathies. When ten "sharīf" travel from Khurāsān to visit Abū Dulaf on his deathbed, he rewards them in return for a written statement of the genealogy of each; "the son of such a one, etc., the son of Alī ibn Abī Ṭālib by Fāṭima the daughter of the Apostle of God," and a declaration that read: "‘Apostle of God’, that, in relief of my distress and misery in my native town, Abū Dulaf al-Ijlī gave two thousand pieces of gold for thy favour and intercession.’” 
In a further account about a dream of Abū Dulaf's son's, the son meets his father in some afterlife world called the Barzakh, and his father says:
Works.
Among his books were:
Legacy.
Several accounts tell of the lavish beneficence Abū Dulaf bestowed on poets, who recompensed him in eulogy, or 'qaṣīdah', celebrating his military prowess. Among these poets were:
His excessive generosity, gullibility and inevitable debt, satirised in stories of his life, have echoes of Shakespeare’s Timon of Athens. One example is expressed in the verse by the Khalidite Abū Bakr Muḥammad ibn Hishām:
Another example is found in the saying spoken by the reluctant mawla, ibn Abī Fatn Sālih, to his wife who would send him to war:
His descendants, known as the Dulafids, played a political role in the Jabal region for about fifty years.