# his master
"Joseph's master, Potiphar"
# heard the explanation his wife told him
"heard his wife explain to him." The word "his" and "him" here refer to Potiphar.
# he became very angry
"Potiphar became very angry"