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