Some people do everything right and still end up worse off. A worker refuses to join in a fraud and is the one who gets fired. A domestic worker says no to her employer and is the one accused of theft. Joseph knows that story. He is a foreign slave in Egypt, far from home, and yet he works so well that his master trusts him with everything. Then his master's wife wants him, day after day. He refuses — and pays for his integrity with his freedom.
Where it sits in the story: After the detour with Judah, the Joseph story resumes in Egypt, the land where Israel's family will grow into a people and later be rescued in the Exodus. God, silent in chapter 37, now appears in the narrator's voice: 'the LORD was with Joseph' frames the chapter. The pattern — raised up, thrown down, raised up again — will carry Joseph from slave to prisoner to ruler.
What this chapter is doing: To show Joseph's faithfulness under temptation and injustice, and to insist that God's presence does not depend on circumstances: he is with Joseph in the master's house and in the prison alike.
- 39:1–6 — Potiphar, captain of Pharaoh's guard, buys Joseph from the traders. Because the LORD is with Joseph, everything he handles prospers, and Potiphar puts him in charge of the whole household. Potiphar blessed because of Joseph is an early echo of the promise to bless others through Abraham's family.
- 39:7–12 — Joseph is handsome, and his master's wife repeatedly tells him to lie with her. He refuses, calling it a betrayal of his master and a sin against God. One day, when no one else is in the house, she grabs his garment; he runs out, leaving it in her hand.
- 39:13–20 — She uses the garment as evidence and accuses 'the Hebrew' of attacking her, first to the servants, then to her husband. Potiphar, furious, puts Joseph in the prison where the king's prisoners are held. For the second time, a garment is used to tell a lie about Joseph.
- 39:21–23 — Even there, the LORD is with him and shows him steadfast love. The chief jailer puts Joseph in charge of the other prisoners, and whatever he does succeeds.
Key verse: Genesis 39:21 · So what: Integrity is not always rewarded quickly. Joseph does the right thing and loses his position, his reputation and his freedom. The chapter's comfort is not that good behaviour pays off, but that God does not leave the person who suffers for doing right — the same line, 'the LORD was with him,' holds in the prison as in the palace.