His later life was spent in various parts of the Islamic world, in Aleppo with its Hamdanid governor Sayf ad-Dawlah (to whom he dedicated the Book of Songs), in Ray with the Buwayhid vizier Ibn 'Abbad, and elsewhere.