← Genesis: All Chapters

Verse-by-Verse Commentary

The Book of Genesis

Chapter 39: The LORD Was With Joseph

Sold into Egypt as a slave, Joseph lands in the house of Potiphar, and one truth shines over everything that happens: "the LORD was with Joseph." Though he is far from home and in bondage, God prospers him until his master trusts him with everything. Then temptation comes. Day after day Potiphar's wife presses Joseph to sin, and day after day he refuses, saying, "how then can I do this great wickedness, and sin against God?" When she seizes him, he flees, leaving his garment behind, and she uses it to accuse him falsely. Joseph is thrown into prison for doing right, yet even there the refrain returns: "the LORD was with Joseph." Genesis 39 is a chapter about integrity under pressure, fleeing temptation, and the God whose presence goes with His people into slavery, into false accusation, and even into the prison cell.

About This Commentary

This is a verse-by-verse study of Genesis chapter 39. For each section you will find the KJV text, plain explanation, and a Gospel Focus where the text touches God's abiding presence, purity and integrity, and faithfulness in unjust suffering. Chapter 39 follows Joseph from the slave market to the prison, and God is with him in both. Every Scripture quotation is from the King James Version.

Setting the Stage

The Blessing

Prospered in Bondage

Though a slave in a foreign land, Joseph prospers because the LORD is with him, and his master puts all he has into Joseph's hand.

The Test

How Can I Sin Against God?

Potiphar's wife tempts Joseph day after day, and he refuses, unwilling to betray his master or to sin against his God.

The Flight

He Left His Garment and Fled

When she seizes him, Joseph flees, leaving his garment in her hand, and she turns that garment into a false accusation against him.

The Prison

The LORD Was With Him

Cast into prison for a crime he did not commit, Joseph still finds the LORD with him, showing him mercy and favor even behind bars.

The Blessing

A Prosperous Man in a Strange Land (Genesis 39:1-6)

Though sold into slavery, Joseph prospers because the LORD is with him, and Potiphar comes to trust him with his whole house.

Genesis 39:1-7

The LORD Made All That He Did to Prosper

"And Joseph was brought down to Egypt; and Potiphar, an officer of Pharaoh, captain of the guard, an Egyptian, bought him of the hands of the Ishmeelites, which had brought him down thither. And the LORD was with Joseph, and he was a prosperous man; and he was in the house of his master the Egyptian. And his master saw that the LORD was with him, and that the LORD made all that he did to prosper in his hand. And Joseph found grace in his sight, and he served him: and he made him overseer over his house, and all that he had he put into his hand. And it came to pass from the time that he had made him overseer in his house, and over all that he had, that the LORD blessed the Egyptian's house for Joseph's sake; and the blessing of the LORD was upon all that he had in the house, and in the field. And he left all that he had in Joseph's hand; and he knew not ought he had, save the bread which he did eat. And Joseph was a goodly person, and well favoured. And it came to pass after these things, that his master's wife cast her eyes upon Joseph; and she said, Lie with me."

Hebrew Study

One sentence rules this chapter, sounded four times over — that the LORD was with Joseph (vv. 2, 3, 21, 23). He is made prosperousmatsliach, caused to succeed — not by his own hand but because the LORD is with him. And Scripture calls him goodly and well favoured, yepheh-toar vi-yepheh mareh — the exact phrase once used of his mother Rachel (29:17): the beautiful son of the beautiful mother, and that beauty now becomes his trial.

Explanation

Joseph, sold by his brothers, is bought by Potiphar, "an officer of Pharaoh, captain of the guard." His life has collapsed: from favored son to foreign slave. Yet the chapter's key phrase appears at once: "the LORD was with Joseph, and he was a prosperous man." Even in bondage, God's presence made Joseph prosper, and it was so obvious that his pagan master "saw that the LORD was with him." Potiphar promotes Joseph to overseer of his entire household, trusting him with everything, and the text says "the LORD blessed the Egyptian's house for Joseph's sake." Joseph did not become bitter or lazy in his unjust situation; he served faithfully right where God had placed him, and God blessed both him and the household around him. He was a slave, but he was a slave the Lord was with, and that made all the difference.

Gospel Focus

"The LORD was with Joseph." This is the heartbeat of the whole chapter, and it is repeated at the beginning and the end. Notice where God's presence found Joseph: not in comfort and honor at home, but in slavery in a foreign land. God does not abandon His people when their circumstances fall apart. The same Lord who promised Jacob at Bethel, "I am with thee ... in all places whither thou goest," was now with his son in Egypt. And see what Joseph did with his hard place: he served faithfully. He could have sulked, cut corners, or nursed his wounds, but instead he worked with all his heart, and God prospered him and blessed others through him. This is the call to every believer stuck in a situation they did not choose: be faithful right there, and let the Lord's presence make you a blessing. Even a pagan master could see that God was with Joseph. When we walk with God through hardship with integrity and diligence, the people around us will notice, and God will be honored. His presence, not our circumstances, is our true prosperity.

The Test

Sin Against God (Genesis 39:7-10)

Potiphar's wife tempts Joseph day after day, but he refuses, unwilling to betray his master's trust or to sin against God.

Genesis 39:8-10

How Then Can I Do This Great Wickedness?

"But he refused, and said unto his master's wife, Behold, my master wotteth not what is with me in the house, and he hath committed all that he hath to my hand; There is none greater in this house than I; neither hath he kept back any thing from me but thee, because thou art his wife: how then can I do this great wickedness, and sin against God? And it came to pass, as she spake to Joseph day by day, that he hearkened not unto her, to lie by her, or to be with her."

Hebrew Study

Joseph's refusal names the true nature of the sin: "How can I do this great wickedness, and sin against God?" He calls it ra'ah gedolah, and directs it Godward — Elohim — not merely against his master's trust. Long before David would cry "against thee, thee only, have I sinned" (Psalm 51:4), Joseph already knew that every sin's first and deepest offense is against God.

Explanation

Joseph is described as "a goodly person, and well favoured," and Potiphar's wife "cast her eyes upon Joseph" and demanded that he sin with her. Joseph refuses flatly. He reasons first from loyalty: his master has trusted him with everything and held back nothing "but thee, because thou art his wife." To betray that trust would be a deep wickedness against the man who trusted him. But then Joseph goes higher, to the real heart of the matter: "how then can I do this great wickedness, and sin against God?" For Joseph, the deepest reason not to sin was not fear of getting caught or even loyalty to Potiphar, but reverence for God. And this was no single heroic moment. The text says "she spake to Joseph day by day," and day by day "he hearkened not unto her." His purity was a settled, daily resolve, not a one-time feeling.

Gospel Focus

Joseph's words reveal the true nature of all sin. He could have listed many reasons to refuse, but the one that governed him was this: "sin against God." All sin, however it may wound other people, is first and finally an offense against God Himself. David understood this after his own fall, crying, "Against thee, thee only, have I sinned, and done this evil in thy sight" (Psalm 51:4). The person who truly grasps that sin is against God has a guard on his heart that no locked door can supply. Joseph had no human accountability in that empty house; only the awareness of God kept him. Notice too that he was tempted "day by day." Temptation is often not a single assault but a wearing, repeated pressure, and Joseph's answer was a steady, repeated no. Purity is built not in one grand decision but in a thousand daily ones. The believer who wants to stand in the hour of testing must settle the matter beforehand, as Joseph clearly had, resolving in advance that some things simply cannot be done, because they are sin against God.

The Flight

He Left His Garment and Fled (Genesis 39:11-18)

When she seizes him, Joseph flees rather than yield, and the garment he leaves behind becomes the evidence for a false accusation.

Genesis 39:11-19

He Left His Garment and Got Him Out

"And it came to pass about this time, that Joseph went into the house to do his business; and there was none of the men of the house there within. And she caught him by his garment, saying, Lie with me: and he left his garment in her hand, and fled, and got him out. And it came to pass, when she saw that he had left his garment in her hand, and was fled forth, That she called unto the men of her house, and spake unto them, saying, See, he hath brought in an Hebrew unto us to mock us; he came in unto me to lie with me, and I cried with a loud voice: And it came to pass, when he heard that I lifted up my voice and cried, that he left his garment with me, and fled, and got him out. And she laid up his garment by her, until his lord came home. And she spake unto him according to these words, saying, The Hebrew servant, which thou hast brought unto us, came in unto me to mock me: And it came to pass, as I lifted up my voice and cried, that he left his garment with me, and fled out. And it came to pass, when his master heard the words of his wife, which she spake unto him, saying, After this manner did thy servant to me; that his wrath was kindled."

Hebrew Study

For the second time a garment (beged) is made to bear false witness against Joseph. His brothers dipped his coat in blood to lie to their father (37:31); now his master's wife clutches the cloak he left and turns it into evidence of a crime he fled. The innocent man is stripped, and the empty garment "speaks" the lie — a pattern that will only be broken when the garments of the high priest clothe the truly Righteous One.

Explanation

The pressure finally comes to a head. One day when no other servants are in the house, Potiphar's wife catches Joseph by his garment and demands again that he sin with her. Joseph does not stay to argue or reason further; he simply runs, leaving his garment in her hand and getting himself out of the house. Fleeing was the wise and godly response; there are temptations we are not meant to negotiate with but to run from. But his flight costs him. Humiliated and spiteful, the woman keeps his garment and twists it into a weapon. She calls the household servants and then her husband, and accuses Joseph of attacking her, using his own garment as false proof: "he left his garment with me, and fled." The very evidence of Joseph's innocence, that he ran, is turned into a lie that makes him look guilty.

Gospel Focus

Joseph's response to seizing temptation is a model for us: he fled. The New Testament gives the same command in plain words: "Flee fornication" (1 Corinthians 6:18), and "Flee also youthful lusts" (2 Timothy 2:22). There is a kind of temptation we are not called to stand and reason with, but simply to run from, and there is no shame in the running. Joseph would rather lose his coat than lose his integrity, rather flee half-clothed than stay and fall. It is worth remembering that this is now the second garment torn from Joseph: his brothers took his coat of many colours, and now Potiphar's wife takes his cloak, and both were used to tell a lie about him. Joseph keeps losing his coat but keeps his character. That is the right trade. We may lose our reputation, our comfort, even our freedom for doing right, but if we keep a clean conscience before God, we have kept the thing that matters most. Better to flee and be falsely accused than to stay and be truly guilty.

The Prison

The LORD Was With Him in Prison (Genesis 39:19-23)

Cast into prison for a crime he did not commit, Joseph still finds the LORD with him, granting him mercy and favor even there.

Genesis 39:20-23

But the LORD Was With Joseph

"And Joseph's master took him, and put him into the prison, a place where the king's prisoners were bound: and he was there in the prison. But the LORD was with Joseph, and shewed him mercy, and gave him favour in the sight of the keeper of the prison. And the keeper of the prison committed to Joseph's hand all the prisoners that were in the prison; and whatsoever they did there, he was the doer of it. The keeper of the prison looked not to any thing that was under his hand; because the LORD was with him, and that which he did, the LORD made it to prosper."

Hebrew Study

He is cast into the prison — the beth ha-sohar, the "round-house," an Egyptian term for the fortress dungeon. Yet the refrain follows him even there: "the LORD was with Joseph, and shewed him mercy" — chesed, covenant loyal-love, poured out in a dungeon. From pit to Potiphar's house to prison, the constant is not Joseph's fortune but God's presence.

Explanation

Potiphar believes his wife and, in anger, has Joseph thrown into prison, "a place where the king's prisoners were bound." It is a bitter injustice: Joseph did the right thing and is punished as if he had done the wrong one. Yet the chapter ends exactly where it began, with the same steady refrain: "But the LORD was with Joseph, and shewed him mercy, and gave him favour in the sight of the keeper of the prison." Even in the dungeon, God's presence did not leave him. The keeper soon trusts Joseph with all the prisoners, just as Potiphar had trusted him with his house, and once again "the LORD made it to prosper." Joseph has now gone from the pit, to slavery, to prison, sinking lower and lower through no fault of his own, and at every level the same truth holds: the LORD is with him.

Gospel Focus

The most important word in this whole chapter may be the little word "but" in verse 21: "But the LORD was with Joseph." Everything in Joseph's life had gone wrong, betrayed, enslaved, tempted, lied about, imprisoned, but God was still with him. Doing right does not guarantee an easy road. Joseph suffered precisely because he obeyed God, and Scripture honors exactly that kind of suffering: "if, when ye do well, and suffer for it, ye take it patiently, this is acceptable with God" (1 Peter 2:20). Here too Joseph is a picture of Christ, the truly innocent one, falsely accused and condemned though He had done no wrong. And behind the injustice, God was quietly at work, for this very prison would put Joseph in the exact place he needed to be to rise to Pharaoh's side and save the world from famine. "We know that all things work together for good to them that love God" (Romans 8:28). When we are suffering unjustly for doing right, we must hold to that "but": whatever else is true, the Lord is with us, and He is working even our prisons into His good and saving plan.

Chapter 39 in Review

Genesis 39 follows Joseph from the slave market to the prison, and one refrain frames it all: "the LORD was with Joseph." In Potiphar's house God prospers him until his master trusts him with everything. When Potiphar's wife tempts him day after day, Joseph refuses, asking, "how then can I do this great wickedness, and sin against God?" When she seizes him, he flees, leaving his garment, which she twists into a false accusation. Joseph is thrown into prison for doing right, yet even there "the LORD was with Joseph," showing him mercy and favor until the keeper trusts him with all the prisoners.

For the Apostolic reader, this chapter teaches how to live faithfully when life is unfair. It shows that God's presence, not our circumstances, is our true prosperity, and that we are to serve faithfully right where God has placed us, even in bondage. It teaches that all sin is finally "against God," and that this reverence, more than any locked door, keeps us pure. It commands us to flee temptation as Joseph fled, willing to lose our coat rather than our character. And it comforts us that doing right may bring suffering, yet the innocent, falsely accused Joseph, a picture of Christ, was never abandoned, for "the LORD was with Joseph" in the pit, the house, and the prison alike. Whatever prison we may find ourselves in for doing right, God is with us there, working all things together for good.

Key Takeaways
  • God's presence, not our circumstances, is our true prosperity: "the LORD was with Joseph" even in slavery (39:2).
  • All sin is finally against God; that reverence keeps us pure: "how then can I sin against God?" (39:9; Psalm 51:4).
  • Flee temptation rather than negotiate with it: "he left his garment ... and fled" (39:12; 1 Corinthians 6:18).
  • Better to lose your coat than your character; keep a clean conscience even when falsely accused (39:12-18).
  • Doing right may bring suffering, but God is with us and works it for good (39:21; 1 Peter 2:20; Romans 8:28).

Questions for Reflection

  • Joseph served faithfully even as a slave. Are you being faithful in a hard place you did not choose?
  • Joseph refused because it would be sin "against God." Does that awareness guard you when no one else is watching?
  • Joseph was punished for doing right, yet the LORD was with him. Where do you need to trust that God is with you in an unjust situation?

References & Sources

Scripture is quoted from the King James Version (KJV). "Wotteth not" is the older English for "does not know," as can be checked in any Bible reference. Supporting passages are listed so every claim can be verified in its own setting. If anything here does not look right, a verse, a reference, or a wording, please tell us at info@FruitBearers.net. Thank you for helping us keep Bible Learning error free.

  1. The LORD prospers Joseph in Potiphar's house: Genesis 39:1-6; 28:15.
  2. Joseph resists temptation: Genesis 39:7-10; Psalm 51:4.
  3. Joseph flees and is falsely accused: Genesis 39:11-18; 1 Corinthians 6:18; 2 Timothy 2:22.
  4. The LORD with Joseph in prison: Genesis 39:19-23; 1 Peter 2:20; Romans 8:28.
How Can I Be Saved?