Muhammad b. al-Hasan, 2nd reign