Al-Mutanabbi wrote this for Sayf al-Dawla, the Hamdanid prince of Aleppo, in 343 AH (954 CE), when the prince rebuilt the frontier fortress of al-Hadath, which its people had surrendered to the Byzantines in 337 AH and which the Byzantines had wrecked. While the walls were going up, the Byzantine commander Bardas Phokas came against it with an army of Byzantines, Armenians, Rus and Bulgars, and Sayf al-Dawla routed him and stayed until the building was finished; al-Ukbari and al-Barquqi say the poem was recited at al-Hadath on the day the prince laid the last battlement with his own hand. It opens with a maxim on great resolves and great men, then turns to the red fortress raised while spears clashed, the iron-clad enemy army of many tongues, the prince standing firm and the commander's flight, and ends with the poet's pride in his verse and a prayer for the prince. Al-Wahidi records that Sayf al-Dawla objected to the way lines 22 and 23 pair their halves, likening them to two lines of Imru' al-Qays that critics had faulted in the same way, and that the poet's defence of both won the prince over.