Muhammad ibn Abi Bakr was an Arab military leader and wali, and a committed supporter of Ali ibn Abi Talib. Born in 631 to Abu Bakr, the first caliph, and Asma bint Umais, he was about 3 when his father died. His mother later married Ali, who raised Muhammad in his household. Muhammad became the father of the Medinan jurist al-Qasim ibn Muhammad.
Muhammad rose to prominence in Egypt as an opponent of the third caliph, Uthman, working alongside Muhammad ibn Abi Hudhayfa. He helped lead the Egyptian delegation that besieged Uthman’s residence in Medina. During the confrontation, Muhammad entered the caliph’s chambers and seized him by the beard, but withdrew after Uthman reminded him of Abu Bakr’s respect for him. Others carried out the fatal attack.
In the First Fitna, Muhammad fought for Ali at the Battle of the Camel and later escorted Aisha back from the battlefield. Ali appointed him governor of Egypt in February 657. His authority faced internal opposition, and efforts to replace him with the more experienced Malik al-Ashtar came to nothing when Malik died before reaching the province.
In July 658, Amr ibn al-As invaded Egypt with an army sent by Mu'awiya I. The Yemeni settlers abandoned Muhammad, and his remaining forces were defeated as Fustat fell. Captured after seeking refuge in a ruin, Muhammad was executed by Mu'awiya ibn Hudayj. Accounts report that his body was sewn into a dead donkey’s skin and burned.