The second battle that took place between Sabuktigin and Jayapala in 988 AD, resulted in the former capturing territory between Lamghan and Peshawar. Al-Utbi also states that the Afghans and Khaljis, living there as nomads, took the oath of allegiance to him and were recruited into his army. He helped Nuh II in expelling the rebel and heretic Abu Ali Simjur from Khorasan, resulting in its governorship being given to Sabuktigin who appointed Mahmud as his deputy there. He also appointed Ismail as the successor to his kingdom and died in 997. A succession war erupted between Ismail and Mahmud, with the latter gaining the throne in 998.
The second battle that took place between Sabuktigin and Jayapala in 988 AD, resulted in the former capturing territory between Lamghan and Peshawar. Al-Utbi also states that the Afghans and Khaljis, living there as nomads, took the oath of allegiance to him and were recruited into his army. He helped Nuh II in expelling the rebel and heretic Abu Ali Simjur from Khorasan, resulting in its governorship being given to Sabuktigin who appointed Mahmud as his deputy there. He also appointed Ismail as the successor to his kingdom and died in 997. A succession war erupted between Ismail and Mahmud, with the latter gaining the throne in 998.