Genesis 39-40 Joseph in Potiphar's House and Prison
Joseph is faithful in a slave's place, is falsely accused, and finds that God is with him even in prison.
Story
The LORD was with Joseph
Joseph was brought down to Egypt. Potiphar, an officer of Pharaoh and the captain of the guard, bought him from the Ishmaelites who had brought him there.
"The LORD was with Joseph, and he was a prosperous man. He was in the house of his master the Egyptian." Potiphar saw that the LORD was with Joseph and that the LORD made everything he did succeed. Joseph found favour in Potiphar's sight and served him, and Potiphar made him overseer of his house and put all he had into Joseph's hand. From that time "the LORD blessed the Egyptian's house for Joseph's sake." Potiphar did not concern himself with anything except the food he ate.
Joseph was also well-built and handsome.
The master's wife
After these things, Potiphar's wife looked at Joseph with desire. "Lie with me," she said.
Joseph refused. He said to her, "Behold, my master doesn't know what is with me in the house, and he has put all that he has into my hand. No one is greater in this house than I am, and he has not kept back anything from me but you, because you are his wife. How then can I do this great wickedness, and sin against God?"
She spoke to him day after day, and he would not listen to her, nor even be with her.
One day Joseph went into the house to do his work, and there was no one else inside. She caught him by his garment and said, "Lie with me!" He left his garment in her hand, and ran outside.
The lie
When she saw that he had gone, she called to the men of her house. "Behold, he has brought a Hebrew in to us to mock us. He came in to me to lie with me, and I cried with a loud voice. When he heard that I lifted up my voice and cried, he left his garment by me, and ran outside."
She kept his garment beside her until her husband came home, and then she told him the same story. "The Hebrew servant, whom you have brought to us, came in to me to mock me."
When Potiphar heard it, his anger was kindled. He took Joseph and put him in the prison, the place where the king's prisoners were kept.
In prison
"But the LORD was with Joseph, and showed kindness to him, and gave him favor in the sight of the keeper of the prison." The keeper put all the prisoners into Joseph's hand. He did not need to look after anything that Joseph handled, "because the LORD was with him; and that which he did, the LORD made it prosper."
Let us imagine: Prison days are long, and Genesis does not describe them. Perhaps Joseph scratched a mark each morning in the wall, and perhaps he sometimes wondered whether his father still thought he was alive.
Two dreams
Some time later, Pharaoh's cupbearer and his baker offended their lord, and Pharaoh was angry with them. He put them in the same prison, and the captain of the guard assigned them to Joseph.
One morning Joseph saw that they were sad. "Why do you look so sad today?" They said they had dreamed dreams and there was no one to explain them. Joseph said, "Don't interpretations belong to God? Please tell it to me."
The cupbearer dreamed of a vine with three branches, which blossomed and gave ripe grapes, and he pressed them into Pharaoh's cup and gave it into Pharaoh's hand. Joseph said, "The three branches are three days. Within three more days, Pharaoh will lift up your head, and restore you to your office." And then he asked for one thing: "But remember me when it is well with you. Please show kindness to me, and make mention of me to Pharaoh, and bring me out of this house. For indeed, I was stolen away out of the land of the Hebrews, and here also I have done nothing that they should put me into the dungeon."
The baker saw that the interpretation was good, and he told his dream: three baskets of bread on his head, and the birds eating from the top basket. Joseph gave him the truth, which was bad news. In three days Pharaoh would lift up his head from him and hang him on a tree.
On the third day, Pharaoh's birthday, it happened just as Joseph had said. The cupbearer was restored to his place. The baker was hanged.
"Yet the chief cup bearer didn't remember Joseph, but forgot him."
For Kids
Joseph had been taken far away from home, and he was sold as a slave to a man named Potiphar. Potiphar was an important officer in Egypt. But the Bible says, "The LORD was with Joseph." Everything Joseph did went well, because God was helping him. Potiphar noticed it. Soon he trusted Joseph so much that he put him in charge of his whole house.
But Potiphar's wife wanted Joseph to do something very wrong. Joseph said no. He explained that Potiphar trusted him, and that he could not do such a wicked thing and sin against God. She kept asking, day after day, but each time Joseph said no. One day he ran away from her.
Then Potiphar's wife told a lie about Joseph. She said that Joseph had done something wrong. Potiphar believed her and was very angry. He put Joseph in prison. Joseph had done the right thing, and he was punished for it. It was not fair.
But even in prison, God was with Joseph. The man in charge of the prison saw that Joseph was honest and wise, and he gave Joseph many jobs.
One day two of Pharaoh's servants were put in the prison: the cupbearer and the baker. They each had a strange dream and felt worried. Joseph said, "Don't interpretations belong to God?" and he asked them to tell him their dreams. God helped Joseph to explain them. The cupbearer would get his job back. The baker's dream had sad news.
Joseph asked the cupbearer to remember him and to speak to Pharaoh about him. Everything happened just as Joseph had said. But the cupbearer forgot all about Joseph. Joseph had to wait, and wait.
Have you ever done the right thing and still been treated badly? Joseph's story says that God sees the truth. He was with Joseph in a rich man's house and in a prison cell, and he is with you wherever you are.
Talk about it: Why was it hard for Joseph to do the right thing? Who can you tell if someone asks you to do something wrong?
Pray: Dear God, please help me to do what is right, even when it is hard. Thank you that you are with me everywhere, even when no one else seems to notice. Amen.
Deep Study
"The LORD was with Joseph"
The phrase appears four times in chapter 39 (verses 2, 3, 21, 23). It is the key. In Potiphar's house and in prison, the same sentence describes the same Joseph. He is a slave and then a prisoner, but the writer insists on a different description: the LORD is with him. The word "prosperous" is matsliach (מַצְלִיחַ), "succeeding". Success here does not mean freedom or comfort. It means that God's help is present in an unjust place.
The test
Joseph's refusal is given with reasons. First, loyalty: his master has trusted him with everything except his wife. Second, and above all, "How then can I do this great wickedness, and sin against God?" The wickedness is "against God" before it is against Potiphar. Compare David's words in Psalm 51:4. Joseph does not discuss, argue or wait. He runs. Paul gives the same advice: "Flee sexual immorality!" (1 Corinthians 6:18).
Power and false accusation
Potiphar's wife is a woman of power in her household, and Joseph is a slave with no one to defend him. She uses her position, and then she uses his foreign birth against him: "a Hebrew" is spoken with contempt. She uses his own garment as evidence, as if it proved her case. Joseph had lost a coat to his brothers' hatred (37:23), and now he loses a cloak to a lie.
Care is needed here. This chapter shows a false accusation, and it shows that God knows the truth. It must never be used to suggest that people who report harassment or abuse are probably lying. Most are telling the truth. They deserve to be heard, to be believed, and to be protected. Genesis also shows that the powerful can misuse their power against the weak. A slave who refuses and is punished for it is a picture of how injustice works.
Potiphar's reaction is notable. He puts Joseph in prison and does not kill him, which would have been normal. Some readers see this as a sign that he doubted her story.
The prison
Psalm 105:17-19 reflects on this period. "They bruised his feet with shackles. His neck was locked in irons, until the time that his word happened, and the LORD's word proved him true." The experience hurt. Yet God's kindness, chesed (חֶסֶד), was with Joseph (39:21), and he found favour in the keeper's eyes.
Looking up from his own pain
In prison, Joseph notices that the two officers are sad (40:6-7). A man in his own trouble stops and asks about theirs. His answer to their dreams is humble: "Don't interpretations belong to God?" Joseph does not claim the gift for himself.
The request and the forgetting
Joseph's only request is, "remember me". He tells his story briefly and with restraint: "I was stolen away", and "I have done nothing". Yet the cupbearer "forgot him", vayyishkachehu (וַיִּשְׁכָּחֵהוּ). Two more years pass (41:1). Joseph learns that human help can fail while God does not. The waiting is part of how God prepares him.
The baker
Joseph tells the baker the truth, though it is bad news. A faithful interpreter does not shape God's word to please his hearers.
Joseph's garments
The chapters about Joseph track what he wears. A special coat (37:3) is taken. A cloak is left behind (39:12). In 41:42 Pharaoh will dress him in fine linen. The pattern is a hint that each loss is not the end.
Lessons for Today
God is with you in unfair places
You may be in a place you did not choose and cannot easily leave. Joseph's story says that the LORD is with the one who is in the pit, the slave's quarters and the cell.
Run from temptation
Joseph did not argue with temptation. He ran. Put distance between yourself and what you know is wrong.
Remember who it is against
Joseph said, "sin against God". Keep God in view when no one else is watching.
Faithfulness may not be rewarded quickly
Joseph did right and ended in prison. Do right anyway, and trust God with the outcome.
Listen to those who report harm
False accusations exist, but most reports of harassment and abuse are true. When someone tells you, listen carefully, and help them find safe, proper help. If you are being harassed, tell a trusted person or the authorities.
Notice other people's pain
Even in his own prison, Joseph noticed the sad faces. Look up from your own troubles.
Do not forget those who helped you
The cupbearer forgot Joseph. Remember and thank the people who have helped you.
For Preaching
Main idea: The LORD was with Joseph in the house, in the temptation and in the prison, and he is with his people in every unjust place.
Key verses: Genesis 39:2, 9, 21
Sermon outline
- A prosperous slave: "The LORD was with Joseph" (39:1-6).
- A costly refusal: "How then can I do this great wickedness?" (39:7-12).
- A false charge: the garment as evidence (39:13-20).
- A kindness in prison: "the LORD was with Joseph, and showed kindness to him" (39:21-23).
- A faithful servant: he notices the sad and interprets for God (40:1-19).
- A long forgetting: "he forgot him" (40:23).
Illustration: A student studies honestly while others around him copy from each other. He is blamed for something he did not do, and sits alone outside the principal's office. But he knows that his teacher, who sees the work, is on his side.
Application: Invite hearers who feel forgotten or falsely accused to bring their situation to God, who sees. Encourage someone to take a practical step away from a temptation this week. Remind the church that those who report harm should be believed and protected.
Closing prayer: Lord, you were with Joseph in the house and in the prison. Be with all who are treated unjustly. Give us courage to flee what is wrong, and compassion for those who suffer. Keep us faithful while we wait. Thank you for Jesus, the righteous one who was falsely accused for us. Amen.