He joined the general emigration to Medina in 622, and Muhammad granted him a house there in the Zurayq quarter. He fought at Badr and, at the division of the spoils, asked for and obtained a sword named al-Marzuban. He also fought at the Uhud, the Battle of the Trench and "all the battles with Allah's Messenger."