According to the narrative given in the Riaz, when Ibrahim Shah reached Bengal with his army, Ganesha asked Shaikh Nur Qutb-ul-Alam for his pardon and protection. The shaikh agreed and Jadu, the twelve-year-old son of Ganesha, converted to Islam at his hands and was renamed Jalaluddin Muhammad Shah.