Abu al-Faraj al-Isfahani relates in the Book of Songs that Ali ibn al-Jahm sent this poem to his brother at the start of his imprisonment under the caliph al-Mutawakkil. The prisoner sets the guarded courts of kings beside a door he can still approach in prayer. He asks what wealth is worth to a man who cannot part with it and what a lifetime’s experience has taught him to prize. The recitation ends with loyalty. In the diwan he goes on to warn his brother about men who only yesterday called themselves his friends.