 However, not everyone converted to Islam at that period as some still refused to accept it.In "Hudud-al-Alam", written in 982 CE, there is reference to a village near Jalalabad where the local king used to have many Hindu, Muslim and Afghan wives.The region became part of the Ghaznavid Empire in the 10th century.