# that righteous man
This refers to Lot.
# was tormented in his righteous soul
The immoral behavior of the citizens of Sodom and Gomorrah disturbed him emotionally. Alternate translation: "was greatly disturbed"