Abu Tammam wrote this elegy for Muhammad ibn Humayd al-Tusi, one of the caliph al-Ma'mun's generals, sent against the Khurramite rebel Babak; al-Tabari records that Babak killed him at Hashtadsar in 214 AH (829 CE), and Ibn al-Athir that when Babak's ambush broke his army in the mountains he held his ground until all but one of his men had fled, then, riding off with that one to save himself, came on the Khurramites fighting a band of his soldiers and made for them; drawn by his fine bearing, they fought him until a javelin brought down his horse and he was killed. The poem opens by magnifying the calamity and blaming any eye that does not weep, praises his generosity, follows him to a martyr's death, mourns him with his clan of Nabhan of Tayyi' and the tribes beyond, and ends by blessing his grave and bidding him God's peace. Al-Suli tells how the prince Abu Dulaf recited some of its lines and said to the poet, “By God, I wish you had said this about me,” and then, “Whoever is mourned with poetry like this has not died.” Ibn Ammar, in an epistle on Abu Tammam's errors, called it “the mother of his necklaces”, the poem that made his name, and attacked its opening and several of its words; he also passed on Di'bil's claim that the poet had lifted lines from an elegy by Abu Sulma al-Muzani, which al-Hasan ibn Wahb, al-Suli reports, rejected: he knew that elegy, it shared nothing with Abu Tammam's, and Di'bil had merged the two, both elegies in one metre, to slander him.