A splendid church was built for him in Medina.