Arabs [ie., Islam]." Habibi continues stating that Khanan later reconverted to the faith of the Hindu-Shahis. His grandson Aflah however upon assuming power demolished the idol-temple and built a mosque in its place. When the saint Surur arrived at the mosque, he is said to have found the idol of Lawik and destroyed it. The Siyasatnama of Nizam al-Mulk, the Tabaqat-i Nasiri of Juzjani and the Majma' al-ansāb fī't-tawārīkh of Muhammad Shabankara'i (14th century) mention Lawik. Juzjani gives the Lawik who was defeated by Alp-tegin the Islamic kunya of Abu Bakr, though Shabankara'i claims he was a pagan. A variant of his name appears as Anuk in Tabaqat-i Nasiri. Bamyan Ya'qubi states that the lord of Bamyan called the Shēr, was converted to Islam under Caliph Al-Mansur (d.775) by Muzahim b. Bistam, who married his son Abu Harb Muhammad to his daughter. However, in his history he changes it to the rule of Al-Mahdi (r. 775–785). Ya'qubi also states that Al-Fadl ibn Yahya made Hasn, Abu Harb Muhammad's son, as the new Shēr after his successful campaign in Ghorband. Ya'qubi states that the ruler of Bamiyan had accompanied an expedition dispatched by Al-Fadl ibn Yahya in 792–793 against the Kabul Shahi. Later Shers remained Muslim and were influential at the Abbasid court. However, Muslim sources describe the Saffarid ruler Ya'qub ibn al-Layth al-Saffar looting Bamiyan's pagan idols. A much later historian Shabankara'i claims that Alp-Tegin obtained conversion of the Sher to Islam in 962. It seems there were lapses to Buddhism among some of the rulers as the Muslim influence grew weak. However, there is no evidence about the role of Buddhism during these periods or whether Buddhist monasteries remained the center of religious life and teaching. Post-Arab rule Tahirids Khurasan was the base for early recruitment of Abbasid armies, especially the Abbasid takeover received support from Arab settlers aiming to undermine the important sections of non-Muslim aristocracy. The Abbasids succeeded in integrating Khorasan and the East into the central Islamic lands. The state was gradually Persianized through political influence and financial support of the dihqans. Al-Ma'mun emerged as the victor in the Fourth Fitna with the help of Khorasani forces and appointed Tahir ibn Husayn as the governor. Later, he appointed Talha as the governor in 822 and Abdallah in 828. But after the Abbasid decline, Khorasan ended up turning into a virtually independent state under a Persian mawla