Here the word "soul" refers to the whole person. This phrase means that he considered himself to be happy and successful because of his riches. AT: "He congratulated himself" (See: [[rc://en/ta/man/translate/figs-synecdoche]] and [[rc://en/ta/man/translate/figs-idiom]])