Joseph had been taken down to Egypt. An Egyptian named Potiphar had bought him from the Ishmaelite traders who had taken him there. Potiphar was one of Pharaoh's officials. He was the captain of the palace guard.
References for Genesis 39:1
The LORD was with Joseph. He gave him great success. Joseph lived in Potiphar's house.
Joseph's master saw that the LORD was with him. He saw that the LORD gave Joseph success in everything he did.
So Potiphar was pleased with Joseph. He made him his attendant. He put Joseph in charge of his house. He told Joseph to take good care of everything he owned.
From that time on, the LORD blessed Potiphar's family and servants because of Joseph. He blessed everything Potiphar had in his house and field.
So Potiphar told Joseph to take good care of everything he owned. With Joseph in charge, he didn't have to worry about anything except the food he ate. Joseph was strong and handsome.
After a while, his master's wife noticed Joseph. She said to him, "Make love to me!"
But he said no. "My master has put me in charge," he told her. "Now he doesn't have to worry about anything in the house. He trusts me to take care of everything he owns.
"No one in this house is in a higher position than I am. My master hasn't held anything back from me, except you. You are his wife. So how could I do an evil thing like that? How could I sin against God?"
She spoke to Joseph day after day. But he told her he wouldn't make love to her. He didn't even want to be with her.
One day Joseph went into the house to take care of his duties. None of the family servants was inside.
Potiphar's wife grabbed hold of him by his coat. "Make love to me!" she said. But he left his coat in her hand. And he ran out of the house.
She saw that he had left his coat in her hand and had run out of the house.
So she called her servants. "Look," she said to them, "this Hebrew slave has been brought here to make fun of us! He came in here to force me to have sex with him. But I screamed for help.
He heard my scream. So he left his coat beside me and ran out of the house."
She kept Joseph's coat with her until Potiphar came home.
Then she told him her story. She said, "That Hebrew slave you brought us came to me to rape me.
But I screamed for help. So he left his coat beside me and ran out of the house."
Potiphar's wife told him, "That's how your slave treated me." When Joseph's master heard her story, he became very angry.
So he put Joseph in prison. It was the place where the king's prisoners were kept. While Joseph was there in the prison,
the LORD was with him. He was kind to him. So the man who was running the prison was pleased with Joseph.
He put Joseph in charge of all of the prisoners. He made him accountable for everything that was done there.
The man who ran the prison didn't pay attention to anything that was in Joseph's care. The LORD was with Joseph. He gave Joseph success in everything he did.