The Story of Joseph in the Bible: Dreams, the Pit, and a God Who Means It for Good
From a coat in his father's house to a chair in Pharaoh's court, and a line at the end that turns the whole story inside out.

- Era
- Roughly 1900 to 1800 BC (Middle Bronze Age, the patriarchal period)
- Role
- Eleventh son of Jacob, second-in-command of Egypt under Pharaoh
- Key chapters
- Genesis 37, 39 to 50
- Famous line
- You intended to harm me, but God intended it for good (Genesis 50:20)
By Daniel Reeves · Editor, The Bible Well
Published
Joseph son of Jacob is the second-longest sustained narrative about a single person in the Hebrew Bible, after David. We meet him as a seventeen-year-old with a robe and a habit of telling his dreams out loud. We leave him as an old man in Egypt, asking to be buried back home when his people finally leave. In between, he is thrown into a pit by his own brothers, sold into slavery, framed by his master's wife, forgotten in a prison, raised in a single afternoon to second-in-command of the most powerful empire on earth, and reunited with the family that betrayed him in a scene that is one of the most quietly devastating in Scripture. This page is not about Joseph the carpenter, the husband of Mary. This is about the Joseph of Genesis, and the line at the end of his life that holds the whole thing together.
Where to find Joseph in the Bible
Joseph's story runs from Genesis 37 to Genesis 50, fourteen chapters, with one brief detour in chapter 38 to the unrelated account of Judah and Tamar. The arc moves through five places, in this order: his father's tent in Canaan, a pit in the wilderness, Potiphar's house in Egypt, an Egyptian prison, and finally Pharaoh's court. Then it loops back. The brothers who threw him in the pit come to Egypt for grain, and the man they meet is the boy they sold.
If you are reading the Joseph narrative for the first time, the easiest way in is to read Genesis 37 in one sitting, then Genesis 39 to 41 in another, then Genesis 42 to 45 in a third, and finally Genesis 50. The four sittings cover roughly an hour of reading and walk you through every beat of the story.
The dreams and the pit (Genesis 37)
The story opens in Hebron, in the household of Jacob, the patriarch whose own name God has changed to Israel. Jacob has twelve sons by four different women, and Joseph is the firstborn of his favorite wife, Rachel. Genesis 37 tells you everything you need to know about the family dynamic in two sentences.
Now Israel loved Joseph more than any of his other sons, because he had been born to him in his old age; and he made an ornate robe for him. When his brothers saw that their father loved him more than any of them, they hated him and could not speak a kind word to him.
— Genesis 37:3-4
The robe is the famous one. The Hebrew is uncertain on the colors, but the meaning is not. It is a garment that says, in cloth, what Jacob refuses to say in words: this son matters more.
Then Joseph has two dreams. In the first, the brothers' sheaves of grain bow down to his. In the second, the sun and moon and eleven stars bow down to him. He tells them. He could have kept quiet. He does not. And the brothers, already cold, decide to be done with him.
They are out at Dothan, far from home, when Joseph arrives wearing the robe his father sent him in. They strip him, throw him into a dry cistern, sit down to eat, and debate whether to kill him. A caravan of Ishmaelites comes by, headed for Egypt, and the brothers sell him for twenty shekels of silver. They take the robe, slaughter a goat, dip the robe in the blood, and bring it to their father. Jacob assumes a wild animal has eaten his son and refuses to be comforted. The brothers say nothing.
That is the first chapter of the story. The favored son is gone, sold by his own family, on a caravan road into a country he has never seen, in a robe that is now in a box in his father's tent, soaked in goat's blood.
If you have ever been written off by the people who were supposed to love you, this chapter is for you. The text does not skip past the cruelty. It records it in detail. The first thing the Joseph story does is refuse to pretend that families do not do this to each other.
Slavery and Potiphar's house (Genesis 39)
Joseph is sold in Egypt to Potiphar, captain of Pharaoh's guard. The narrator's comment on what happens next is the line the whole middle of the story turns on.
The Lord was with Joseph so that he prospered, and he lived in the house of his Egyptian master. When his master saw that the Lord was with him and that the Lord gave him success in everything he did,
— Genesis 39:2-3
Joseph rises in Potiphar's household. Within a few years he is running the entire estate. And then the second betrayal comes. Potiphar's wife wants him. He refuses, day after day, until one afternoon she catches him alone, grabs his cloak, and when he leaves the cloak in her hand and runs, she uses it as evidence that he assaulted her.
Listen to the answer he gives her before he runs, because it is the only sentence of Joseph's interior life Genesis gives you in this chapter.
No one is greater in this house than I am. My master has withheld nothing from me except you, because you are his wife. How then could I do such a wicked thing and sin against God?
— Genesis 39:9
Notice what he does not say. He does not say I would be caught. He does not say it would cost me my job. He says I would sin against God. There is no one watching him in Egypt. His family thinks he is dead. His God, by every visible measure, has not been particularly kind to him. And the man, alone in a foreign country, refuses to use his loneliness as a permission slip.
He is thrown into prison.
If you are reading this in a hard season where doing the right thing has cost you something it was supposed to reward you for, Joseph is your company. The text does not promise that integrity will be rewarded in this life. Genesis 39 ends with the man who refused to sin sitting in a cell.
Prison and the dreams of others (Genesis 40)
In prison, the same pattern repeats. The Lord is with Joseph. The warden trusts him. He rises again, this time inside the prison walls, running it from the inside.
Two of Pharaoh's officials, the cupbearer and the baker, are thrown in with him. They have dreams. Joseph interprets them. The cupbearer's dream means he will be restored in three days. The baker's dream means he will be executed. Both come true.
Joseph asks the cupbearer to remember him to Pharaoh. The cupbearer forgets. Joseph sits in prison for two more years.
This is the quietest part of the story, and it is the part the corpus of devotional writing tends to skip. Two more years. After the pit, after the false accusation, after the chance that looked like the door opening. Two more years of a man whose gift was already operating in the dark, doing work for which he received no credit, in a place he had no reason to expect to leave.
Pharaoh's dream and the rise (Genesis 41)
Then, in one chapter, everything changes.
Pharaoh has a dream that none of his magicians can interpret. The cupbearer finally remembers Joseph. Joseph is pulled out of the dungeon, shaved, given clean clothes, and brought before the most powerful man in the known world. He interprets Pharaoh's dream: seven years of plenty are coming, then seven years of famine that will erase the plenty. He proposes a plan. Pharaoh is impressed.
Then Pharaoh said to Joseph, "Since God has made all this known to you, there is no one so discerning and wise as you. You shall be in charge of my palace, and all my people are to submit to your orders. Only with respect to the throne will I be greater than you."
— Genesis 41:39-40
In a single afternoon, the slave is made the second-most-powerful man in Egypt. He is thirty years old. Thirteen years have passed since the day his brothers threw him in the pit.
He is given a wife, Asenath, and they have two sons. He names the first Manasseh, because God has made me forget all my trouble and all my father's household, and the second Ephraim, because God has made me fruitful in the land of my suffering. Two sentences of theology disguised as baby names. He has not forgotten what happened to him. He has just decided what to call it.
The brothers come to Egypt (Genesis 42 to 44)
The famine arrives. It is everywhere, including back home in Canaan. Jacob sends his ten older sons, all but Benjamin, the only other son of Rachel, to Egypt to buy grain. They are brought before the Egyptian official in charge of distribution and they bow down to him. They do not recognize him. He recognizes them.
What follows is one of the longest and most carefully constructed scenes in Genesis. Joseph does not reveal himself. He accuses them of spying. He demands they bring Benjamin. He hides money in their grain sacks. He has his silver cup planted in Benjamin's bag. He sets up a test designed to find out one thing and one thing only: are these the same men who threw their brother away over a robe, or has something in them changed?
The test reaches its peak when Joseph announces that Benjamin must stay in Egypt as a slave for the supposed theft of the cup. Judah, who twenty years earlier was the one who suggested selling Joseph in the first place, steps forward and offers himself in Benjamin's place. Please let your servant remain here as my lord's slave in place of the boy, he says. How can I go back to my father if the boy is not with me? (Genesis 44:33-34).
Judah, the one who sold a brother to spare himself trouble, now offers to be sold to spare a brother. That is what Joseph was waiting to see. The next chapter is what breaks him.
The revelation and the weeping (Genesis 45)
Joseph cannot hold it together anymore. He sends every Egyptian out of the room. He weeps so loudly the household hears him from outside. Then he speaks.
Then Joseph said to his brothers, "Come close to me." When they had done so, he said, "I am your brother Joseph, the one you sold into Egypt! And now, do not be distressed and do not be angry with yourselves for selling me here, because it was to save lives that God sent me ahead of you."
— Genesis 45:4-5
Read that again. The first thing out of his mouth, after twenty-two years of silence, is not an accusation. It is a doctrine of providence delivered as comfort. Do not be distressed. Do not be angry with yourselves. The brothers, who have come into the room expecting to be killed, are told instead not to be too hard on themselves.
He keeps going.
But God sent me ahead of you to preserve for you a remnant on earth and to save your lives by a great deliverance. So then, it was not you who sent me here, but God. He made me father to Pharaoh, lord of his entire household and ruler of all Egypt.
— Genesis 45:7-8
Notice the careful theology. Joseph does not deny what the brothers did. They did sell him. He just sees, underneath what they did, a hand they had not noticed. The brothers' evil was real. God's purpose was deeper. Both are true at once. Joseph does not collapse one into the other.
He kisses them all and weeps over each of them. They go home and bring Jacob, and the whole family, seventy people in all, moves to Egypt. The man who left in chains brings his father in honor.
If you are reading this with someone in your family in mind, someone who hurt you or someone you hurt, this is the chapter to sit with. Joseph does not pretend it did not happen. He does not minimize it. He just refuses to let the wound be the last word.
You intended to harm me, but God intended it for good (Genesis 50:19-20)
The patriarch Jacob lives in Egypt for seventeen years and dies. The brothers panic. They have always wondered whether Joseph was only forgiving them because their father was watching. Now their father is gone. They send a message: Your father left these instructions before he died, that you forgive us. They throw themselves down before him as slaves. And Joseph, weeping again, gives the most important sentences in the entire story.
But Joseph said to them, "Don't be afraid. Am I in the place of God? You intended to harm me, but God intended it for good to accomplish what is now being done, the saving of many lives."
— Genesis 50:19-20
That line is the theological hinge of the whole Joseph narrative. Tim Keller spent more sermons on Genesis 50:20 than perhaps any other Old Testament verse, because it does something almost nothing else in the Old Testament does. It looks back at twenty-two years of betrayal, sexual harassment, false accusation, abandonment, and forgotten prison, and says: God was in this. Not next to this. Not after this. In this.
The brothers' evil is not minimized. You intended to harm me. Yes. They did. The text does not let them off. But the same events that were their cruelty were also God's deliverance. God intended it for good. The Hebrew verb is the same word in both halves of the sentence. They wove a plan. God wove a deeper one through the same threads.
This is not a verse you can use to comfort someone in the middle of their suffering. It is a verse that Joseph, after twenty-two years, found that he could finally say. The Joseph story does not tell you to be at Genesis 50 on day one of your pit. It tells you that Genesis 50 exists.
What the story is doing in your life right now
Most readers who arrive at this page are not curious about Bronze Age Egypt. You are here because something in your life looks like the pit, or the prison, or the silence of the cupbearer who promised to remember you and forgot. The Joseph story is for you, but it is not a promise that what happened to him will happen to you. It is a promise about who God is when it does not.
A few things the story actually says, plainly, that you can carry with you.
- God's silence is not God's absence. Genesis 39 and 40 are the longest stretch of the story, and they are the years when no one knew where Joseph was. The narrator tells you, twice in chapter 39, that the Lord was with him. The narrator does not tell Joseph. Joseph had to choose to believe it.
- Integrity in private is not optional. Joseph's "How then could I do such a wicked thing and sin against God?" was spoken in an empty house, to a woman who would punish his refusal. The line that gets quoted at his coronation in Genesis 41 is the line he formed in a hallway no one was watching.
- Providence does not erase grief. Joseph weeps three different times in the reunion narrative. The man who can articulate Genesis 50:20 is also the man who buries his face in his brother's shoulder and shakes. Theology and tears are not opposites in this story.
- Forgiveness is a slow river, not a switch. Joseph spends three chapters testing his brothers before he reveals himself. He is not toying with them. He is finding out whether the men in front of him are the men who threw him in a pit, or whether something in them has actually changed. Forgiveness, in Genesis, comes after the truth is on the table.
- The deepest theology is delivered as comfort, not as argument. Joseph never argues for providence. He uses it to calm his brothers down. Genesis 50:20 is a sentence spoken to terrified people kneeling on a floor. The doctrine of God's sovereign goodness over evil is not, for the patriarchs, an abstract claim. It is what you say to the people who are afraid of you.
If you have been the older brother in this story, the one whose jealousy turned into cruelty, the rest of the Bible holds out the same welcome Joseph held out. We have a whole page on the welcome of the prodigal son where Jesus tells essentially the same story, this time with the father on the road instead of the brother in Pharaoh's court.
How Joseph points to Christ
The shape of Joseph's life draws, in advance, the shape of Jesus' life. Read the pattern slowly.
- Joseph is the beloved son of his father, the one Jacob loves more than the others. Jesus is the Beloved Son, named so from heaven at his baptism (Matthew 3:17).
- Joseph is rejected by his brothers before he ever has a chance to do anything wrong. Jesus is rejected by his own people. He came to that which was his own, but his own did not receive him (John 1:11).
- Joseph is sold for silver, twenty shekels, by Judah's suggestion. Jesus is sold for silver, thirty pieces, by Judas (a Greek form of Judah).
- Joseph is falsely accused by a woman whose advances he refused. Jesus is falsely accused at his trial by witnesses whose testimony does not agree (Mark 14:56).
- Joseph is condemned with criminals, the cupbearer and the baker, one of whom is restored and one of whom dies. Jesus is crucified between two criminals, one of whom turns to him and is told today you will be with me in paradise (Luke 23:43).
- Joseph is exalted from the prison to the right hand of Pharaoh, in a single day. Jesus is exalted from the cross to the right hand of the Father, in three days.
- Joseph becomes the means by which the very people who betrayed him are saved from death. Jesus is the means by which the very people who crucified him are forgiven. Peter, in Acts 2:23, says it almost in Joseph's exact grammar: This man was handed over to you by God's deliberate plan and foreknowledge, and you, with the help of wicked men, put him to death by nailing him to the cross. You intended it for harm. God intended it for good.
Joseph is not Jesus. He is not the Messiah, he does not die, he does not rise. But the pattern of his life is the pattern of the gospel, scratched into the Old Testament so deeply that the people who lived through it could not see what they were drawing. The story of a beloved son betrayed, condemned, raised to power, and saving the very ones who threw him away is not a story Israel invented. It is a story God told, in advance, with a real human life.
Charles Spurgeon returned to Joseph again and again across his preaching life, and almost always to make this single point: when you read Joseph, you are reading Jesus in pencil. The portrait is faint, but it is the same face.
Related questions
+Where in the Bible is the story of Joseph?
+What book of the Bible is the story of Joseph in?
+Is this the same Joseph as the father of Jesus?
+What is the main lesson of Joseph's life?
+How does Joseph point to Jesus?
Further study
If you want one book on Joseph, Iain Duguid's Living in the Gap Between Promise and Reality (P&R, 1999) is a slim, pastoral walk through Genesis 37 to 50 that is unusually honest about the long years between the dream and its fulfillment. For a single sermon, Tim Keller's "The Providence of God" on Genesis 50 is on the Gospel in Life sermon archive and repays the forty minutes.
On this site, you might keep reading with David, another favored-son-forged-through-suffering story that runs parallel to Joseph's in unexpected ways, or with the prodigal son, where Jesus retells the Joseph story in miniature with a father on the road. If your interest in Joseph is the dreams, what the Bible says about dreams covers the broader pattern. If your interest is the providence question, Is God Real? sits with the larger version of what Joseph is saying at the end of Genesis 50.
Related questions
+Where in the Bible is the story of Joseph?
The story of Joseph runs from Genesis 37 to Genesis 50, with a brief pause in Genesis 38 for the unrelated account of Judah and Tamar. The arc is continuous: Joseph the favored son in chapter 37, Joseph in Potiphar's house and prison in chapters 39 and 40, Joseph before Pharaoh in chapter 41, the reunion with his brothers in chapters 42 to 45, and his last words and burial in chapter 50.
+What book of the Bible is the story of Joseph in?
Genesis, the first book of the Bible. Joseph's story occupies roughly the last quarter of the book and serves as the bridge between the patriarchs (Abraham, Isaac, Jacob) and the nation of Israel in Egypt, where the book of Exodus picks up.
+Is this the same Joseph as the father of Jesus?
No. The Joseph of Genesis 37 to 50 is the son of Jacob, who lived roughly 1,800 years before Jesus. Joseph the husband of Mary, a carpenter in Nazareth, appears in the Gospels of Matthew and Luke. They share a name but nothing else.
+What is the main lesson of Joseph's life?
That God is at work in the very events that look like the death of his promises. Joseph says it himself, at the end, to the brothers who sold him into slavery: 'You intended to harm me, but God intended it for good to accomplish what is now being done, the saving of many lives' (Genesis 50:20). The lesson is not that suffering is small. It is that suffering is not the last word.
+How does Joseph point to Jesus?
The pattern is unmistakable: the beloved son, betrayed by his brothers, sold for silver, falsely accused, condemned with criminals, exalted from the prison to the right hand of the ruler, becoming the means by which the very people who handed him over are saved. Joseph is not Jesus. But the shape of his story is the shape of the gospel, drawn in advance.