Now Joseph had been taken to Egypt. An Egyptian [named] Potiphar, an officer of Pharaoh and the captain of the guard, bought him from the Ishmaelites who had brought him there.
References for Genesis 39:1
The Lord was with Joseph, and he became a successful man, serving in the household of his Egyptian master.
References for Genesis 39:2
When his master saw that the Lord was with him and that the Lord made everything he did successful,
Joseph found favor in his master's sight and became his personal attendant. Potiphar also put him in charge of his household and placed all that he owned under his authority.
References for Genesis 39:4
From the time that he put him in charge of his household and of all that he owned, the Lord blessed the Egyptian's house because of Joseph. The Lord's blessing was on all that he owned, in his house and in his fields.
He left all that he owned under Joseph's authority; he did not concern himself with anything except the food he ate. Now Joseph was well-built and handsome.
References for Genesis 39:6
After some time his master's wife looked longingly at Joseph and said, "Sleep with me."
References for Genesis 39:7
But he refused and said to his master's wife, "Look, my master does not concern himself with anything in his house, and he has put all that he owns under my authority.
References for Genesis 39:8
No one in this house is greater than I am. He has withheld nothing from me except you, because you are his wife. So how could I do such a great evil and sin against God?"
References for Genesis 39:9
Although she spoke to Joseph day after day, he refused to go to bed with her.
References for Genesis 39:10
Now one day he went into the house to do his work, and none of the household servants was there.
References for Genesis 39:11
She grabbed him by his garment and said, "Sleep with me!" But leaving his garment in her hand, he escaped and ran outside.
When she realized that he had left his garment with her and had run outside,
she called the household servants. "Look," she said to them, "my husband brought a Hebrew man to us to make fun of us. He came to me so he could sleep with me, and I screamed as loud as I could.
When he heard me screaming for help, he left his garment with me and ran outside."
References for Genesis 39:15
She put Joseph's garment beside her until his master came home.
Then she told him the same story: "The Hebrew slave you brought to us came to me to make fun of me,
but when I screamed for help, he left his garment with me and ran outside."
References for Genesis 39:18
When his master heard the story his wife told him-"These are the things your slave did to me"-he was furious
and had him thrown into prison, where the king's prisoners were confined. So Joseph was there in prison.