he dedicated himself to a religious career which he combined with writing