Muhammad ibn Wasil

Muhammad eventually released him after negotiations with the governor; he subsequently left the region of Bost and made his way to Kerman, which was home to a number of other Kharijite outlaws.

[4] Less than a year after his takeover of Fars, Muhammad was threatened by Ya'qub ibn al-Layth, the self-made emir of Sistan.

His withdrawal is described as having been caused either by Muhammad's submission to him, or by the arrival of emissaries sent by the caliphal government to convince him to abandon his westward advance.

The central government sent an envoy to secure Ibn Muflih's release, but Muhammad refused their offers and executed the general.

Musa, recognizing his inability to control the situation, resigned his governorship and transferred responsibility for Fars to the caliphal regent, al-Muwaffaq.

His advance brought him close to Baghdad and the Abbasid capital of Samarra, but in April 876 he was defeated by a caliphal army led by al-Muwaffaq at the Battle of Dayr al-'Aqul.

Ya'qub, however, despite his defeat at the hands of the Abbasids, still had the strength to reassert his authority within Fars, and when the two enemies began fighting, Muhammad soon found himself unable to maintain his position.

Map of Fars and its surrounding regions in the 9th–10th centuries