 The Ghaznavids soon afterwards supplanted the Samanids in Khurasan, and the Farighunids become Ghaznavid vassals.Abu'l Haret died in c. 1000 and Abu'l-Nasr Muhammad succeeded him.Abu'l-Nasr enjoyed the confidence of Mahmud of Ghazna; in 1008 he fought in the center of the Ghaznavid line against the Karakhanids near Carkhiyan and in the following year escorted Mahmud during his campaign in India.