While the Baridis' Daylamite troops plundered the caliphal palaces, Ibn Ra'iq and his army, along with the caliph and his son, abandoned the city for Mosul, to place themselves under the protection of the local rulers, the Hamdanids.