He therefore resolved to leave that city and go to Medina.