The Book of Genesis: In the Beginning

Genesis 39

Genesis 39 — The LORD Was with Joseph

Today’s Passage: Genesis 39

Come and walk with me into one of the finest chapters in all of Genesis, a chapter about a young man far from home who keeps his integrity when no one who loves him is watching. Joseph has been sold by his own brothers and carried down into Egypt, a slave in a foreign land, and by every earthly measure his life is ruined. Yet the chapter opens and closes on the same quiet sentence, the sentence that is the true story underneath all the others: the LORD was with Joseph. In the house of his master he is entrusted with everything, and God blesses all he touches. Then his master’s wife sets her eyes on him and presses him, day after day, to betray his master and his God, and Joseph will not do it, because the sin she is asking for is first of all a sin against God. When she cannot have him she seizes his cloak as he flees, and turns that cloak into a lie, and Joseph is thrown into prison for the crime of being faithful. And there, in the last verses, the very same words come again: the LORD was with him. Watch, as you read, how a man can lose his freedom and keep his soul, and how the God who was with Joseph in the great house did not leave him for one moment in the prison.

As you read, hold this: Joseph fears God more than he fears man, and the LORD is with him in the master’s house and the prison alike.

Context The world of Genesis 39

To feel this chapter you should understand who Potiphar was and what his household would have been like. He is called an officer of Pharaoh and captain of the guard, a high and trusted man in the Egyptian court, the sort of official who ran a great estate with many servants, storerooms, fields, and accounts. To be placed over such a household, as Joseph soon is, was to hold real responsibility, to manage the wealth and daily affairs of a powerful man. That a foreign slave should rise to run the whole house tells you that something unusual was at work, and the chapter tells you plainly what it was.

Listen for the refrain that frames everything, for it is spoken four times, twice in the house and twice in the prison: the LORD was with Joseph. The narrator does not leave us to guess at the secret of Joseph’s success; he names the covenant God by name and says the LORD was the reason. Whether Joseph stood in a nobleman’s house managing his fortune or sat in a dungeon among the king’s prisoners, the same presence went with him, and the same blessing followed. That is the thread to hold with both hands as you read.

Then there is the daily pressure of the temptation, and I want us to handle it soberly, because the point of the story is not the woman’s sin but Joseph’s faithfulness. His master’s wife pressed him again and again to betray his master’s trust, and Joseph refused every time, and the reason he gave lifts the whole matter up out of the ground and into heaven. His master had withheld nothing from him except this one woman, his wife, and so, Joseph says, how could I do such a great evil and sin against God? He saw the act for what it truly was, not merely a wrong against a man who trusted him but a sin against the God who was with him.

Finally, watch the cloak, because it ties this chapter back to the one before. When the wife cannot have Joseph, she snatches the garment he leaves behind as he flees and uses it as false evidence against him, and if that troubles you it should, for a garment was used against Joseph once already. His brothers stripped him of his robe and dipped it in blood to deceive their father, and now a torn cloak in a woman’s hand is turned into another lie. Yet notice where the lie lands him. It lands him in the prison where the king’s prisoners were kept, and that very prison becomes the next place where the LORD shows Joseph favor, the next room in a house of providence that Joseph cannot yet see the shape of.

Genesis 39:1–6 (BSB)

¹ Meanwhile, Joseph had been taken down to Egypt, where an Egyptian named Potiphar, an officer of Pharaoh and captain of the guard, bought him from the Ishmaelites who had taken him there. ² And the LORD was with Joseph, and he became a successful man, serving in the household of his Egyptian master. ³ When his master saw that the LORD was with him and made him prosper in all he did, ⁴ Joseph found favor in his sight and became his personal attendant. Potiphar put him in charge of his household and entrusted him with everything he owned. ⁵ From the time that he put Joseph in charge of his household and all he owned, the LORD blessed the Egyptian’s household on account of him. The LORD’s blessing was on everything he owned, both in his house and in his field. ⁶ So Potiphar left all that he owned in Joseph’s care; he did not concern himself with anything except the food he ate. Now Joseph was well-built and handsome,

See where the chapter begins, and how low it begins. Joseph has been taken down to Egypt, sold like a piece of property to an Egyptian official, cut off from his father, his home, and everything he knew. Anyone watching would have said that God had abandoned this boy, that the bright dreams of his youth had come to nothing in a slave market far from the promised land. And then, right in the middle of that ruin, comes the sentence that changes how we read the whole thing: and the YHWH, pronounced yah-WEH,. Strong's H3068, the LORD, the covenant name of God (YHWH). Four times in this chapter the narrator tells us that “the LORD was with Joseph,” and this matters more than it may first appear. All through Joseph’s story God works behind the scenes, unseen and unnamed by the people in the room, and the human characters never once speak this holy name. Potiphar sees only that some blessing rests on his slave; the wife sees only a handsome young man; the warden sees only a prisoner he can trust. But the narrator pulls back the curtain and tells us the truth they could not see: it was Yahweh, the covenant God, who was with Joseph the whole time.

was with Joseph. Not in the palace, not in freedom, not with his family gathered round, but in slavery in a stranger’s house, the LORD was with him. Hold onto that, because it means the presence of God is not measured by the ease of our circumstances.

And see where the name is placed, for it brackets the entire chapter like two strong arms holding it up. It is spoken at the top, when Joseph rises in the great house, and again at the bottom, when Joseph sits in the prison, and it is exactly the same in both places. The house did not make God present, and the prison did not drive Him away. Yahweh was simply with Joseph, in the palace of his prosperity and in the pit of his disgrace, and the God who keeps covenant does not change His presence to match our fortunes. When you cannot see His hand and no one around you names His name, remember Joseph, and remember that the same faithful LORD may be nearer than anyone in the room can tell.

And notice what that presence looked like in practice. Joseph did not sit idle waiting for rescue; he served, and he served so faithfully that even his pagan master could see that some blessing rested on the young man’s hands. Everything Joseph touched prospered, and Potiphar, no fool about his own fortune, kept promoting him until he had handed over the running of his entire estate, trusting Joseph with everything he owned and troubling himself with nothing but the food he ate. So the blessing of the LORD spread out from one faithful slave and covered a whole Egyptian household, in the house and in the field alike, the way it once spread from Abraham to the nations. That last little line, that Joseph was well-built and handsome, is not idle praise. It is the Bible quietly setting the stage, telling us why the next trial came, so that we will feel the weight of what Joseph was about to be asked to throw away.

Genesis 39:7–10 (BSB)

⁷ and after some time his master’s wife cast her eyes upon Joseph and said, “Sleep with me.” ⁸ But he refused. “Look,” he said to his master’s wife, “with me here, my master does not concern himself with anything in his house, and he has entrusted everything he owns to my care. ⁹ No one in this house is greater than I am. He has withheld nothing from me except you, because you are his wife. So how could I do such a great evil and sin against God?” ¹⁰ Although Potiphar’s wife spoke to Joseph day after day, he refused to go to bed with her or even be near her.

Now comes the trial, and I want us to walk through it plainly and reverently, because the honor of this chapter belongs to Joseph’s answer. His master’s wife, a powerful woman in a house where Joseph is only a slave, sets her desire on him and puts it to him bluntly. Joseph could have reasoned his way into it a hundred ways. He was young and far from home, no one who loved him was near, the woman held rank over him, and refusing her was dangerous. But he refused, and he refused at once, and the reasons he gave show us a man whose loyalties were already settled long before the moment of testing. He would not betray a master who had trusted him with everything, and above that, and deeper than that, he would not sin against his God.

Listen to the very center of his answer, for it is one of the great sentences of the Old Testament: how could I do such a great evil and sin against God? Joseph saw past the woman and past the master and past the closed door of the house, and he named the deepest truth about the act she wanted, that it was a chatanu, pronounced khah-TAH-noo. Strong's H2398, to sin, to miss the mark, to fall short. At the heart of Joseph’s refusal is this old Hebrew verb the Bible uses for sin, and its root picture is wonderfully plain. The word means to miss the mark, to fall short of a target, the way an arrow flies wide of what it was aimed at. To sin, in this understanding, is not first of all to break a rule but to miss the mark of what God made us for, to shoot our lives wide of His will. And when Joseph reaches for a word to name the thing being asked of him, this is the word he chooses, and the One he names as the offended party is not his master but God.

against the God who was with him. This is what integrity is made of, seeing our choices the way heaven sees them.

Sit with that, because it is the whole secret of why Joseph stood firm. He could have counted the cost only in earthly terms, the risk of being caught, the anger of his master, the loss of his position. Instead he lifted the whole matter up to heaven and said this would be a sin against God. He knew, as every faithful heart eventually learns, that all our wrongs are finally aimed at the LORD Himself, that behind every commandment stands the God who gave it. The man who understands that his sin is against God has found the deepest fence against temptation there is, for you may hide a thing from every human eye and still never once escape the eyes of the One you would be sinning against. Joseph feared God more than he feared discovery, and that fear made him free.

And notice that this was no single heroic refusal in one dramatic hour. She spoke to him day after day, wearing at him, and day after day he refused, and he even kept himself away from her presence so as not to be caught in the pull of it. That is how a godly man guards himself, not by testing how close to the fire he can stand, but by keeping his feet away from the flame.

Genesis 39:11–15 (BSB)

¹¹ One day, however, Joseph went into the house to attend to his work, and not a single household servant was inside. ¹² She grabbed Joseph by his cloak and said, “Sleep with me!” But leaving his cloak in her hand, he escaped and ran outside. ¹³ When she saw that he had left his cloak in her hand and had run out of the house, ¹⁴ she called her household servants. “Look,” she said, “this Hebrew has been brought to us to make sport of us. He came to me so he could sleep with me, but I screamed as loud as I could. ¹⁵ When he heard me scream for help, he left his cloak beside me and ran out of the house.”

Here the long pressure comes to its crisis, and Joseph’s answer to it is his feet. He goes into the house to do his work on a day when, as it happens, none of the other servants are inside, and she seizes him by his cloak and makes her demand one last time. And Joseph does the only wise thing a man can do when temptation has him by the garment: he does not linger to argue or reason or test his own strength, he leaves the cloak in her hand and runs. There is no shame in that flight; it is the very shape of victory. Sometimes the bravest and most faithful thing is not to stand and fight but to get out of the room, to leave behind whatever the temptation has hold of and put a door between yourself and the sin.

But see how quickly a scorned desire turns to spite. The moment she is left holding his cloak, the woman who wanted Joseph now wants his ruin, and she takes the very evidence of his innocence, the garment he shed in his flight, and twists it into proof of a crime. She calls the servants and tells them a lie, casting herself as the victim and Joseph as the predator, and she reaches for prejudice to make it stick, sneering at “this Hebrew” as a foreigner brought in to shame them. It is a bitter thing to watch, an innocent man’s integrity used against him, his escape rewritten as an assault. And yet we who are reading know the truth, and more than that, the LORD who was with Joseph knew it, and a lie told in an empty house is never told outside the hearing of God.

Genesis 39:16–20 (BSB)

¹⁶ So Potiphar’s wife kept Joseph’s cloak beside her until his master came home. ¹⁷ Then she told him the same story: “The Hebrew slave you brought us came to me to make sport of me, ¹⁸ but when I screamed for help, he left his cloak beside me and ran out of the house.” ¹⁹ When his master heard the story his wife told him, saying, “This is what your slave did to me,” he burned with anger. ²⁰ So Joseph’s master took him and had him thrown into the prison where the king’s prisoners were confined. While Joseph was there in the prison,

Watch how patiently the lie is carried through. She keeps the cloak beside her all day like a piece of borrowed evidence, waiting for her husband to come home, and then she tells him the same false story she had told the servants, wording it now to wound him, “the Hebrew slave you brought us.” Potiphar hears it and burns with anger, and the man who had trusted Joseph with everything he owned now believes the worst of him in a single evening, and has him seized and thrown into the prison where the king’s own prisoners were kept. So the faithful young man goes down again, down as he went down into Egypt, down now into a dungeon, and it is worth saying plainly that he goes there for doing right. He kept his master’s trust and his God’s law, and his reward, in the eyes of the world, is a prison cell.

This is one of the hardest truths a believer has to hold, that doing the righteous thing does not always spare us suffering, and sometimes it is the very cause of it. Joseph did nothing wrong, and everything went wrong for him. But do not read that verse and stop at the closing of the prison door, for the sentence does not end there. “While Joseph was there in the prison,” it says, and it leaves the thought open, hanging, waiting for the next word, because the story is not over, and the God of the story is not finished. The world has shut Joseph away and forgotten him. Heaven has not. Read on, and see who walked into that prison with him.

Genesis 39:21–23 (BSB)

²¹ the LORD was with him and extended kindness to him, granting him favor in the eyes of the prison warden. ²² And the warden put all the prisoners under Joseph’s care, so that he was responsible for all that was done in the prison. ²³ The warden did not concern himself with anything under Joseph’s care, because the LORD was with Joseph and gave him success in whatever he did.

And now the refrain returns, and it lands like a hand on the shoulder of everyone who has ever suffered for doing right: the LORD was with him. The same words that opened the chapter in the great house now close it in the dungeon, unchanged, undimmed, as if to tell us that the walls of a prison mean nothing to the presence of God. He extended kindness to Joseph there, granting him favor with the warden, and soon the very thing that happened in Potiphar’s house happens again inside the jail. The warden sees that he can trust this prisoner, and hands over to Joseph the running of the whole prison, until he no longer troubles himself with anything under Joseph’s care. Twice now Joseph has been given charge of everything around him, once in a mansion and once in a cell, and both times for the same reason, spoken plainly in the last line: because the LORD was with Joseph and gave him success in whatever he did.

Rest gladly on exactly what the text says here, and go no further than it goes. It does not tell us what was in God’s heart or how God felt as He watched His servant suffer; it tells us what God did. The LORD was with him. The LORD extended kindness to him. The LORD gave him success. That is enough to lift your head. It means that the darkest, most unjust chapter of Joseph’s life was not a chapter God had left, that even in the prison the covenant God was present and at work, quietly turning a cell into the next step toward a throne Joseph could not yet imagine. When you find yourself shut in some hard place you did not deserve, waiting in a dark you did not choose, take the whole weight of your hope and set it here, on the plain and glorious fact that the LORD who was with Joseph is able to be with His people still, in the palace and in the prison alike.

Study notes Going deeper

The one truth to carry home from this chapter is the sentence that opens it and closes it: the LORD was with Joseph. Everything else in the story, the rise in the house, the fierce refusal, the false accusation, the sentence in the prison, is held up by that single unchanging fact. And notice the ground of Joseph’s faithfulness, the reason he gave when he could have found a hundred excuses. He did not say, someone might find out, or my master would be wronged, though both were true. He went straight to the deepest thing and said this would be a sin against God, and long after Joseph, a broken king would learn to see his own sin the very same way.

"Against You, You only, have I sinned and done what is evil in Your sight, so that You may be proved right when You speak and blameless when You judge." Psalm 51:4 (BSB)

That is the same clear sight Joseph had years before David ever wrote it, the knowledge that every sin, however it may wound the people around us, is finally and first of all against God Himself. A young man who understood that in an empty house was kept from a great evil, and it is worth asking the LORD to give us that same vision of our choices, to see them as heaven sees them. But Joseph’s story also tells us how God meets the one who is willing to flee temptation, and the New Testament turns that mercy into a promise for every believer.

"No temptation has seized you except what is common to man. And God is faithful; He will not let you be tempted beyond what you can bear. But when you are tempted, He will also provide an escape, so that you can stand up under it." 1 Corinthians 10:13 (BSB)

Read that with Joseph running out of the house and leaving his cloak behind, and you can almost see the escape God provided, the open door, the feet that carried him out. God is faithful, and He does not abandon His people to a testing they cannot bear; He makes a way out, and our part is simply to take it, to run when running is what faithfulness requires. Joseph took the way out and it cost him his freedom, and still the LORD was with him, in the house and in the prison alike. So carry this home and hold it fast: fear God more than you fear man, flee the sin that would take you from Him, and trust that the God who was with Joseph will never once leave the one who belongs to Him, no matter how dark or unjust the room He walks you through.