غزوة الخندق
Later in the year 627 he took part in the Battle of the Trench and also in the Invasion of Banu Qurayza. He was also made commander of a small expedition that set out to attack and destroy the tribes of Tha'libah and Anmar, who were plundering nearby villages.