 For nine months the Samanids and Saffarids fought around the city; at last on May 24, 913 ‘Amr and Ibn al-Haffar surrendered.Abu Salih Mansur was released, and safe conduct was promised for the defenders, but ‘Amr, Ibn al-Haffar and the "‘ayyar" leaders were sent to Herat and then to Bukhara.‘Amr was sent to Samarkand, while the "‘ayyar" leaders were executed.