 Furthermore, Yusuf ibn Sabuktigin and Ali ibn Il-Arslan including the rest Ghaznavid army of also joined Mas'ud.Mas'ud then marched towards Ghazni, where he defeated Muhammad and had him imprisoned, while crowning himself as the new Sultan of the Ghaznavid Empire.According to Ferishta, Differences between Muhammad and his twin brother Mas'ud became worse by the time.