Isa ibn Musa, the Caliph's nephew, was sent against Medina with 4,000 men, but Muhammad refused to abandon the holy city and insisted on meeting the Abbasid attack there. In the meantime, he imitated the actions of Muhammad, like restoring the famous ditch around the city. Muhammad's supporters nevertheless began deserting him.