at the end of his life he retired to his monastery