Abu Tammam wrote this ode for the caliph al-Mu'tasim when he took Amorium, a Byzantine stronghold in Anatolia, in 223 AH (838 CE). Al-Tibrizi, opening his commentary on it, says that the astrologers had ruled that the caliph would not take the city, and that the Byzantines wrote to him that their books said it could fall only when the figs and grapes were ripe; he refused to leave until it fell. The poem opens, with no prelude, by mocking the astrologers, then pictures the city as a virgin untouched since Alexander and the fire that turned its night to day, praises the caliph, recalls the woman of Zibatra whose cry for help he answered and the Byzantine emperor's flight, and ends by setting his victory beside the Prophet's at Badr. It is dense with antithesis and wordplay, which al-Suli and al-Tibrizi point out line by line, and its opening half-line is quoted to this day. It is known as the Ba'iyya of Abu Tammam, “the poem in ba'”, after its rhyme.