Juvayni (d. 1283) records that, during the Abbasid persecution carried out against Isma'il ibn Ja'far, Muhammad and his brother Ali were in hiding in Medina. Muhammad left Medina to escape Abbasid espionage and thereafter lived incognito, his whereabouts being known to only a few of his most responsible followers.
According to Juvayni (d. 1283), during the Abbasid campaign against Isma'il ibn Ja'far, Muhammad and Ali hid in Medina. Muhammad then left Medina to avoid being detected by Abbasid agents and lived incognito, with only a few of his most loyal followers knowing his whereabouts.