← Genesis
Lesson 19 of 24 · about 25 min

Integrity in the Pit

How do you hold onto your convictions when doing the right thing only gets you punished?

📖 Genesis 39:1-40:23
1Read
Read First

Genesis 39:1-40:23

Read the whole passage before anything else. Everything below exists to help you understand what you just read.

1Joseph was brought down to Egypt. Potiphar, an officer of Pharaoh’s, the captain of the guard, an Egyptian, bought him from the hand of the Ishmaelites that had brought him down there.

2The LORD was with Joseph, and he was a prosperous man. He was in the house of his master the Egyptian.

3His master saw that the LORD was with him, and that the LORD made all that he did prosper in his hand.

4Joseph found favor in his sight. He ministered to him, and Potiphar made him overseer over his house, and all that he had he put into his hand.

5From the time that he made him overseer in his house, and over all that he had, the LORD blessed the Egyptian’s house for Joseph’s sake. The LORD’s blessing was on all that he had, in the house and in the field.

6He left all that he had in Joseph’s hand. He didn’t concern himself with anything, except for the food which he ate. Joseph was well-built and handsome.

7After these things, his master’s wife set her eyes on Joseph; and she said, “Lie with me.”

8But he refused, and said to his master’s wife, “Behold, my master doesn’t know what is with me in the house, and he has put all that he has into my hand.

9No 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?”

10As she spoke to Joseph day by day, he didn’t listen to her, to lie by her, or to be with her.

11About this time, he went into the house to do his work, and there were none of the men of the house inside.

12She caught him by his garment, saying, “Lie with me!” He left his garment in her hand, and ran outside.

13When she saw that he had left his garment in her hand, and had run outside,

14she called to the men of her house, and spoke to them, saying, “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.

15When he heard that I lifted up my voice and cried, he left his garment by me, and ran outside.”

16She laid up his garment by her, until his master came home.

17She spoke to him according to these words, saying, “The Hebrew servant, whom you have brought to us, came in to me to mock me,

18and as I lifted up my voice and cried, he left his garment by me, and ran outside.”

19When his master heard the words of his wife, which she spoke to him, saying, “This is what your servant did to me,” his wrath was kindled.

20Joseph’s master took him, and put him into the prison, the place where the king’s prisoners were bound, and he was there in custody.

21But the LORD was with Joseph, and showed kindness to him, and gave him favor in the sight of the keeper of the prison.

22The keeper of the prison committed to Joseph’s hand all the prisoners who were in the prison. Whatever they did there, he was responsible for it.

23The keeper of the prison didn’t look after anything that was under his hand, because the LORD was with him; and that which he did, the LORD made it prosper.

1After these things, the butler of the king of Egypt and his baker offended their lord, the king of Egypt.

2Pharaoh was angry with his two officers, the chief cup bearer and the chief baker.

3He put them in custody in the house of the captain of the guard, into the prison, the place where Joseph was bound.

4The captain of the guard assigned them to Joseph, and he took care of them. They stayed in prison many days.

5They both dreamed a dream, each man his dream, in one night, each man according to the interpretation of his dream, the cup bearer and the baker of the king of Egypt, who were bound in the prison.

6Joseph came in to them in the morning, and saw them, and saw that they were sad.

7He asked Pharaoh’s officers who were with him in custody in his master’s house, saying, “Why do you look so sad today?”

8They said to him, “We have dreamed a dream, and there is no one who can interpret it.” Joseph said to them, “Don’t interpretations belong to God? Please tell it to me.”

9The chief cup bearer told his dream to Joseph, and said to him, “In my dream, behold, a vine was in front of me,

10and in the vine were three branches. It was as though it budded, it blossomed, and its clusters produced ripe grapes.

11Pharaoh’s cup was in my hand; and I took the grapes, and pressed them into Pharaoh’s cup, and I gave the cup into Pharaoh’s hand.”

12Joseph said to him, “This is its interpretation: the three branches are three days.

13Within three more days, Pharaoh will lift up your head, and restore you to your office. You will give Pharaoh’s cup into his hand, the way you did when you were his cup bearer.

14But 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.

15For 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.”

16When the chief baker saw that the interpretation was good, he said to Joseph, “I also was in my dream, and behold, three baskets of white bread were on my head.

17In the uppermost basket there were all kinds of baked food for Pharaoh, and the birds ate them out of the basket on my head.”

18Joseph answered, “This is its interpretation. The three baskets are three days.

19Within three more days, Pharaoh will lift up your head from off you, and will hang you on a tree; and the birds will eat your flesh from off you.”

20On the third day, which was Pharaoh’s birthday, he made a feast for all his servants, and he lifted up the head of the chief cup bearer and the head of the chief baker among his servants.

21He restored the chief cup bearer to his position again, and he gave the cup into Pharaoh’s hand;

22but he hanged the chief baker, as Joseph had interpreted to them.

23Yet the chief cup bearer didn’t remember Joseph, but forgot him.

World English Bible (public domain)Read in another translation
2Understand

What just happened?

Joseph, sold into slavery by his brothers, finds himself in Egypt, a powerful Bronze Age civilization. He is bought by Potiphar, an officer of Pharaoh and captain of the guard. This isn't just any soldier; this is a high-ranking military official, probably overseeing royal security and perhaps even executions. Joseph, despite his circumstances, quickly rises in Potiphar’s household. The text emphasizes that 'the LORD was with Joseph,' and whatever he touched prospered. This isn't magic; it's a narrative observation that Joseph's competence and integrity, empowered by something beyond himself, made him exceptionally effective. Potiphar notices, entrusting Joseph with virtually everything he owns, short of his food and, crucially, his wife.

The story takes a dark turn when Potiphar's wife, a woman of significant social standing in ancient Egypt, notices Joseph's 'well-built and handsome' appearance. She begins a relentless campaign to seduce him. For days, she pressures him, but Joseph consistently refuses, articulating a clear boundary: he will not betray his master's trust or, more fundamentally, 'sin against God.' This isn't an abstract religious concept for Joseph; it's a lived conviction about cosmic order and loyalty. One day, when Joseph is alone in the house, she corners him, grabbing his garment. He flees, leaving his cloak behind, a damning piece of evidence in her hands. This act of flight is not cowardice but a desperate attempt to maintain his integrity and escape a perilous situation.

Enraged and humiliated, Potiphar's wife turns the tables, framing Joseph for attempted assault. She rallies the household staff and then tells her husband a distorted version of events, presenting herself as the victim and Joseph as the aggressor. Potiphar, upon hearing his wife's account and seeing the garment, is furious. He throws Joseph into the royal prison, 'the place where the king’s prisoners were bound.' This is not a common jail; it's a secure facility for political prisoners, often controlled by the captain of the guard – Potiphar himself. Yet, even in prison, the narrative reaffirms, 'the LORD was with Joseph.' He quickly gains favor with the prison warden, and once again, his administrative gifts shine, as he's put in charge of all the other prisoners.

In this royal prison, Joseph encounters two high-ranking officials of Pharaoh: the chief cupbearer and the chief baker, who have fallen out of favor. Both men have disturbing dreams, which Joseph, attributing the ability to God, interprets for them. The cupbearer’s dream foretells his restoration to Pharaoh’s service in three days, while the baker’s dream predicts his execution by hanging in three days. Joseph asks the cupbearer to remember him once restored, to 'show kindness to me, and make mention of me to Pharaoh, and bring me out of this house,' explaining he was 'stolen away out of the land of the Hebrews' and is innocent of any crime in Egypt. Exactly as Joseph predicted, Pharaoh’s birthday arrives, and he restores the cupbearer and hangs the baker. Yet, despite Joseph's plea, the cupbearer forgets him completely, leaving Joseph languishing in prison for an untold amount of time.

Genesis 39:2-5

An Unexpected Blessing

Joseph is bought as a slave, the lowest rung of society, in a foreign land. Yet, the text immediately says, 'The LORD was with Joseph, and he was a prosperous man.' This isn't a theological abstraction; it’s a tangible observation. Potiphar, an Egyptian, 'saw that the LORD was with him.' How could a pagan Egyptian recognize this? Perhaps it wasn't about recognizing Yahweh specifically, but about witnessing an undeniable pattern of success and competence surrounding Joseph. His work ethic, his organizational skills, his intelligence—all seemed to be amplified, yielding extraordinary results. The term 'prosperous' (Hebrew: *tsaliach*) doesn't just mean wealthy; it means to 'succeed' or 'make progress.'

Potiphar's response is pragmatic: he delegates everything to Joseph. 'He left all that he had in Joseph’s hand. He didn’t concern himself with anything, except for the food which he ate.' This is an incredible level of trust placed in a slave, especially a foreign one. It speaks to Joseph's remarkable character and ability to earn confidence. More than that, the narrative states, 'the LORD blessed the Egyptian’s house for Joseph’s sake.' This idea, that God's favor extends beyond the immediate recipient to those around them, is a recurring theme in Genesis. Joseph's presence literally makes Potiphar's life better, economically and administratively. This detail suggests that God's work isn't always confined to explicit religious rituals or people; sometimes it manifests through the diligent and ethical work of individuals in unexpected places.

Genesis 39:8-9

The Line in the Sand

Potiphar's wife makes her move. Joseph’s refusal is striking because he doesn't just say 'no.' He articulates his reasons with a clarity that highlights his convictions. He first appeals to his loyalty to Potiphar: 'my master doesn’t know what is with me in the house, and he has put all that he has into my hand.' This acknowledges the profound trust placed in him. His integrity is tied to the honor of his master. He recognizes the power dynamics; he is essentially the acting head of the household.

But Joseph doesn't stop there. He elevates the issue to a higher authority: 'How then can I do this great wickedness, and sin against God?' This is a pivotal moment. In a culture where fidelity was often a matter of social contract or property rights, Joseph frames it as a transgression against the divine. The Hebrew word for 'wickedness' (*ra'ah*) here implies evil or moral wrong, while 'sin' (*chata'*) means to miss the mark or stray from a correct path. Joseph sees an inherent moral order, tied to God, that transcends the immediate consequences of Potiphar finding out. He is not just avoiding getting caught; he is upholding a covenant with his unseen God, even though he's a slave in a pagan land.

Genesis 39:20-23

Prosperity in a Pit

Joseph’s reward for his integrity? Prison. This is where the story challenges conventional notions of justice. He did the right thing, and he was punished. He ends up in the 'house of the captain of the guard,' which, as the passage indicates, was the same prison where 'the king’s prisoners were bound.' Potiphar had every right, by law, to execute Joseph for the alleged crime. That he imprisoned him instead, allowing him to live, is often interpreted as a sign that Potiphar may have had lingering doubts about his wife's story, or perhaps recognized Joseph's immense value and chose a lesser punishment.

Despite being unjustly imprisoned, the narrative repeats a crucial phrase: 'But the LORD was with Joseph.' This isn't a throwaway line; it's the lens through which we are meant to understand Joseph’s resilience. Just as in Potiphar’s house, Joseph's competence and favor with God manifest again. The prison warden, like Potiphar, quickly recognizes Joseph’s abilities and places him in charge of all the prisoners. 'Whatever they did there, he was responsible for it.' Joseph effectively becomes the chief administrator of the prison. The injustice of his situation is stark, but so is the persistent theme of God's presence and Joseph's unwavering ability to thrive, even in the most restrictive and unfair environments. This isn't about magical intervention; it's about a man living out his character and God working through his circumstances.

Genesis 40:14-23

The Disappointment of Forgetfulness

Joseph interprets the dreams of the cupbearer and the baker with remarkable accuracy. He doesn't take credit for this ability, stating, 'Don’t interpretations belong to God?' This reinforces his consistent humility and his deep understanding that his gifts are divine in origin. His interpretation for the cupbearer offers a ray of hope: 'Within three more days, Pharaoh will lift up your head, and restore you to your office.' Joseph, a prisoner, sees an opportunity for release.

His plea to the cupbearer is direct and human: '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.' He provides a concise summary of his innocence: '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 cupbearer is restored, the baker executed, exactly as predicted. But then, 'the chief cup bearer didn’t remember Joseph, but forgot him.' This is a moment of profound letdown for Joseph and the reader. Hope, kindled by prophetic insight, is extinguished by human forgetfulness and self-interest. Joseph's wait continues, underscoring the raw, often unfair, reality of his journey. His integrity has brought him further down, and even a moment of prophetic triumph doesn't immediately change his lot.

3Discover

What are we supposed to see?

This passage shows God as a persistent, behind-the-scenes orchestrator, whose presence is less about flashy miracles and more about consistent blessing on an individual's character and work, even in dire circumstances. God doesn't prevent Joseph from being sold, framed, or imprisoned. Instead, God's 'being with' Joseph manifests in Joseph's exceptional competence, his ability to gain favor with powerful people (Potiphar, the prison warden), and his capacity to interpret dreams. It's a quiet, steady presence that enables Joseph to not just survive, but to thrive administratively in impossible situations. God's action here is less about changing external circumstances directly and more about empowering Joseph's internal resilience and making him effective wherever he is placed.

The passage also reveals God as a God of justice and moral order, which Joseph explicitly acknowledges when he refuses Potiphar's wife. Joseph's conviction that his actions would be 'sin against God' implies a universal moral standard that transcends human laws and cultural norms. While God doesn't immediately intervene to rescue Joseph from the consequences of his integrity, the narrative subtly affirms that Joseph's understanding is correct. God does not endorse the injustice Joseph suffers, even if it is allowed to happen. Instead, God continues to work *through* Joseph's suffering and his unique gifts, preserving him for a larger purpose that remains unseen to Joseph and the reader at this stage. The accurate dream interpretations further underline God's sovereign knowledge and control, even when human actors seem to forget their obligations.

  • 1
    IDENTITY

    God is the one who 'was with Joseph,' not preventing suffering but enabling resilience and favor even in the darkest circumstances.

  • 2
    WHAT HE VALUES

    God values integrity, loyalty, and the moral order that transcends human convenience, exemplified by Joseph's refusal to 'sin against God.'

  • 3
    WHAT HE CONFRONTS

    God confronts injustice and human self-interest, even when it appears to triumph in the short term, by continuing to work through those who uphold His standards.

Where this sits in the whole Bible

Genesis 39:2-3 → Acts 7:9-10

Stephen's speech in Acts directly references Joseph's story, stating that 'God was with him' and gave him favor and wisdom before Pharaoh, reinforcing this theme of God's presence despite suffering.

Genesis 39:9 → Psalm 51:4

Joseph's declaration 'How then can I do this great wickedness, and sin against God?' echoes the sentiment in Psalm 51, where David confesses his sin as primarily against God, revealing a core understanding of sin's ultimate target.

Genesis 40:23 → Psalm 105:17-19

Psalm 105 summarizes Joseph's story, including his time in prison where 'his feet were hurt with fetters; he was laid in irons,' explicitly stating that 'the word of the Lord tested him' until his appointed time came, providing a divine perspective on the cupbearer's forgetfulness and Joseph's extended suffering.

The one thing to remember

Joseph's integrity doesn't spare him from suffering; it leads him into deeper trouble, challenging the simplistic notion that doing the right thing guarantees immediate reward, yet paradoxically, it positions him for his ultimate purpose.

4Deep reflection

Don't rush past this

The most uncomfortable aspect of this passage is that Joseph, who consistently does the right thing, ends up in worse circumstances precisely because of his unwavering integrity. He refuses an illicit sexual advance out of loyalty and a sense of 'sin against God,' and his reward is false accusation, public humiliation, and imprisonment. There is no divine intervention to prevent the injustice, no immediate vindication. He is forgotten by the one person who could help him, left to languish. This challenges any easy assumption that faithful living will always lead to comfort or immediate rescue.

Furthermore, the narrative doesn't shy away from the sexual harassment Joseph endures. Potiphar's wife is portrayed as predatory and relentless, using her power and social standing to pressure a vulnerable slave. The casual manner in which she frames him, and Potiphar's swift, unquestioning punishment, highlights the extreme power imbalance and the lack of recourse for someone like Joseph. His only defense is flight, which itself is used as 'proof' of his guilt. This portrays a harsh reality where truth and justice are often secondary to power dynamics and reputation, making Joseph's moral stand all the more significant and costly.

Turn it inward

Three questions from this passage. Answer them or just sit with them — nothing here is required to finish the lesson.

The mirror
The cost
The decision
Pray

God of Joseph, help me to see your presence not just in easy victories, but in the strength to maintain my integrity even when it leads to difficulty. Give me the courage to stand firm in my convictions, even when I am overlooked or forgotten. Remind me that my greatest loyalty is to you, and that you are at work even in the quiet, challenging moments. Amen.

Create a free account to save this to your Journal. Reading never requires an account.
5Live it
One step this week

This week, identify an area where you feel tempted to compromise your integrity for comfort or personal gain. Instead of giving in, articulate to yourself (and if appropriate, to others) the 'why' behind your conviction, much like Joseph did. Then, choose to act in alignment with that conviction, regardless of the immediate, uncomfortable consequences. Notice the internal strength that comes from that choice.

Go deeper — optional

History, language, objections and sources. None of it is needed to understand the passage.

Hard questions
If God is 'with Joseph' and wants him to prosper, why does He allow Joseph to be falsely accused and thrown into prison for doing the right thing? Why doesn't God intervene directly?
Interpretation

The text consistently states 'the LORD was with Joseph,' not that God would shield him from all hardship. This presence appears to manifest not in supernatural rescue from every pit, but in empowering Joseph to thrive and gain favor within those challenging circumstances. In Potiphar's house, Joseph prospered and gained authority. In prison, he again gained favor with the warden and was put in charge. The narrative suggests that God's plan involves Joseph being *in* these places, learning, developing, and eventually connecting with key figures (like the cupbearer). Rather than direct intervention preventing suffering, God's method here is to work through Joseph's character and gifts, ensuring his survival and preparing him for future leadership. This is a common theme in ancient Near Eastern narratives, where divine favor often accompanies a hero through trials rather than exempting them.

Joseph, as a Hebrew, was a slave in Egypt. Does this passage endorse slavery, especially since God seems to bless Joseph in his position as a slave?
Interpretation

The text describes slavery as a historical reality of the ancient world; it doesn't offer a moral endorsement or condemnation of the institution itself. Instead, it places Joseph within that system and observes God's presence and work within those confines. The narrative states that 'the LORD was with Joseph,' leading to his prosperity and favor, which is an observation about God's activity in Joseph's life, not an affirmation of slavery as an ideal. Joseph's ethical behavior and his eventual rise to power are presented as God's providence, not as a validation of the system that made him a slave. Biblical narratives often portray societal realities without explicitly condoning them, focusing instead on how individuals navigate those systems in relation to God's will. Later in the Torah, God institutes laws for slavery, often aimed at regulating and mitigating its harshness within a society that already practiced it, not necessarily to create it or affirm it as a moral good.

Why does Joseph feel the need to say he 'sinned against God' instead of just saying he'd betray Potiphar? Was it a strategic move or a genuine conviction?
Interpretation

Joseph’s statement, 'How then can I do this great wickedness, and sin against God?' (Genesis 39:9), indicates a deep-seated conviction, not merely a strategic maneuver. While he clearly states his loyalty to Potiphar, he elevates the refusal to a cosmic level. For Joseph, loyalty to his master and respect for the marital bond are expressions of a higher moral order established by God. This aligns with a broader understanding of sin in the Hebrew Bible, where transgressions against humans are also seen as transgressions against God (e.g., Psalm 51:4). This isn't just about avoiding human punishment; it's about maintaining his moral and spiritual integrity before his divine overseer. Given his consistent character throughout the story, this statement reflects a genuine and foundational belief that guides his decisions, even when it leads to personal suffering.

Potiphar's Position and Egyptian Law

Potiphar's title, 'captain of the guard' (Hebrew: *sar hatabachim*), literally means 'chief of the butchers' or 'chief of the slaughterers.' This title often designated the highest-ranking official responsible for the pharaoh's security, including overseeing the royal prison and carrying out executions. This makes Joseph's placement in his household, and then in 'the place where the king’s prisoners were bound,' highly significant. Potiphar was not just a powerful military official, but a key figure in the administration of justice and security within the pharaonic system. Joseph's rise in his household, and later in the prison under his purview, speaks volumes about his exceptional administrative skills and the trust he earned, even from a powerful Egyptian official. The fact that Potiphar imprisoned Joseph rather than executing him for the alleged crime might suggest he had doubts about his wife's story, or perhaps recognized Joseph's immense value to him.

Ancient Egyptian law regarding adultery and sexual misconduct was severe. While a master had considerable power over his slaves, a slave accused of assaulting the wife of a high official like Potiphar could easily face execution. The punishment for a free man who committed adultery with a married woman could be mutilation, beating, or even death. For a slave, the penalty could be even more brutal. The narrative's detail about Joseph leaving his garment is critical: in ancient law, such physical evidence, especially when presented by a woman of high status, would be considered highly credible, making Joseph's escape from immediate death (and instead, imprisonment) a subtle testament to God's continued protective hand or perhaps Potiphar's lingering regard for Joseph's past performance.