Imam's departure from Medina