 Amr, at the pinnacle of his power, sent the defeated rebel's head to Baghdad.In 897 Ray too was handed over to the Saffarids by the Abbasids, who could not manage to hold the city against Zaydi invasions.The partnership finally collapsed after al-Mu'tadid named Amr ibn al-Layth governor of Transoxiana in 898, which was ruled by his rivals, the Samanids.