 Fortunately for Abu 'Ali, he managed to secure the support of other Samanid vassals, such as the rulers of Khuttal, and the Kumiji mountain people, and in the end made peace with Nuh, who allowed him to keep Chaghaniyan in return for sending his son Abu'l Muzaffar Abdallah as hostage to Bukhara.Some time later, Abu 'Ali was sent on an expedition to quell a rebellion near Chaghaniyan under a self-proclaimed prophet known as Mahdi.Abu 'Ali managed to successfully defeat and capture the latter and then had his head sent to Bukhara.