Career
When Muhammad arrived in Medina in 622, he joined each Muhajir with one of the Ansar, pairing Muhammad ibn Maslamah with Umar ibn al-Khattab. Muhammad ibn Maslamah took part in all the military engagements of Muhammad except the Battle of Tabouk. On that occasion, he and Ali were put in charge of an army which was left behind to protect Medina.
Muhammad ibn Maslama collected four others, including a foster-brother of Ka"b.
By pretending to have turned against Muhammad, they enticed Ka"b out of his fortress on a moonlit night for what was supposed to be negotiations of raising money to fight Muhammed. He put twenty men under the command of Muhammad ibn Maslamah and entrusted him with patrolling the camp at night.
Muhammad ibn Maslamah was among them. In 627, after the surrender of the Banu Qurayza, Muhammad ibn Maslamah was put in charge of the captured males that were eventually killed.
During the caliphate of Umar (634 - 644), Muhammad ibn Maslamah was put in charge of a special office established to investigate complaints against officers of the state.
When Amr ibn al-Aas requested reinforcements during his expedition to Egypt, Umar sent him four detachments of one thousand men each, led by Muhammad ibn Maslamah, az-Zubayr ibn aI-Awwam, Ubadah ibn as-Samit and al-Miqdad ibn al-Aswad. Muhammad ibn Maslamah also served Umar"s successor, the third "Rightly Guided Caliph", Uthman. When the latter was killed in 656 and civil war broke out Muhammad did not participate, deliberately breaking the sword he always used, and which was given to him by Muhammed.
Muhammad ibn Maslamah died in Medina, April 666 at the age of seventy five.
He was involved in the expulsion of the Banu Nadir from Medina.