Jacob lived in the land where his father had stayed, the land of Canaan.
These are the family records of Jacob. At 17 years of age, Joseph tended sheep with his brothers. The young man [was working] with the sons of Bilhah and Zilpah, his father's wives, and he brought a bad report about them to their father.
Now Israel loved Joseph more than his other sons because Joseph was a son [born to him] in his old age, and he made a robe of many colors for him.
When his brothers saw that their father loved him more than all his brothers, they hated him and could not bring themselves to speak peaceably to him.
Then Joseph had a dream. When he told it to his brothers, they hated him even more.
He said to them, "Listen to this dream I had:
There we were, binding sheaves of grain in the field. Suddenly my sheaf stood up, and your sheaves gathered around it and bowed down to my sheaf."
"Are you really going to reign over us?" his brothers asked him. "Are you really going to rule us?" So they hated him even more because of his dream and what he had said.
Then he had another dream and told it to his brothers. "Look," he said, "I had another dream, and this time the sun, moon, and 11 stars were bowing down to me."
He told his father and brothers, but his father rebuked him. "What kind of dream is this that you have had?" he said. "Are your mother and brothers and I going to bow down to the ground before you?"
His brothers were jealous of him, but his father kept the matter [in mind].
His brothers had gone to pasture their father's flocks at Shechem.
Israel said to Joseph, "Your brothers, you know, are pasturing [the flocks] at Shechem. Get ready. I'm sending you to them." "I'm ready," Joseph replied.
Then Israel said to him, "Go and see how your brothers and the flocks are doing, and bring word back to me." So he sent him from the valley of Hebron, and he went to Shechem.
A man found him there, wandering in the field, and asked him, "What are you looking for?"
"I'm looking for my brothers," Joseph said. "Can you tell me where they are pasturing [their flocks]?"
"They've moved on from here," the man said. "I heard them say, 'Let's go to Dothan.' " So Joseph set out after his brothers and found them at Dothan.
They saw him in the distance, and before he had reached them, they plotted to kill him.
They said to one another, "Here comes that dreamer!
Come on, let's kill him and throw him into one of the pits. We can say that a vicious animal ate him. Then we'll see what becomes of his dreams!"
When Reuben heard this, he tried to save him from them. He said, "Let's not take his life."
Reuben also said to them, "Don't shed blood. Throw him into this pit in the wilderness, but don't lay a hand on him"-- intending to rescue him from their hands and return him to his father.
When Joseph came to his brothers, they stripped off his robe, the robe of many colors that he had on.
Then they took him and threw him into the pit. The pit was empty; there was no water in it.
Then they sat down to eat a meal. They looked up, and there was a caravan of Ishmaelites coming from Gilead. Their camels were carrying aromatic gum, balsam, and resin, going down to Egypt.
Then Judah said to his brothers, "What do we gain if we kill our brother and cover up his blood?
Come, let's sell him to the Ishmaelites and not lay a hand on him, for he is our brother, our [own] flesh." His brothers agreed.
When Midianite traders passed by, they pulled Joseph out of the pit and sold him for 20 pieces of silver to the Ishmaelites, who took Joseph to Egypt.
When Reuben returned to the pit and saw that Joseph was not there, he tore his clothes.
He went back to his brothers and said, "The boy is gone! What am I going to do?"
So they took Joseph's robe, slaughtered a young goat, and dipped the robe in its blood.
They sent the robe of many colors to their father and said, "We found this. Examine it. Is it your son's robe or not?"
His father recognized it. "It is my son's robe," he said. "A vicious animal has devoured him. Joseph has been torn to pieces!"
Then Jacob tore his clothes, put sackcloth around his waist, and mourned for his son many days.
All his sons and daughters tried to comfort him, but he refused to be comforted. "No," he said. "I will go down to Sheol to my son, mourning." And his father wept for him.
Meanwhile, the Midianites sold Joseph in Egypt to Potiphar, an officer of Pharaoh and the captain of the guard.
At that time Judah left his brothers and settled near an Adullamite named Hirah.
There Judah saw the daughter of a Canaanite named Shua; he took her as a wife and slept with her.
She conceived and gave birth to a son, and he named him Er.
She conceived again, gave birth to a son, and named him Onan.
She gave birth to another son and named him Shelah. It was at Chezib that she gave birth to him.
Judah got a wife for Er, his firstborn, and her name was Tamar.
Now Er, Judah's firstborn, was evil in the LORD's sight, and the LORD put him to death.
Then Judah said to Onan, "Sleep with your brother's wife. Perform your duty as her brother-in-law and produce offspring for your brother."
But Onan knew that the offspring would not be his; so whenever he slept with his brother's wife, he released his semen on the ground so that he would not produce offspring for his brother.
What he did was evil in the LORD's sight, so He put him to death also.
Then Judah said to his daughter-in-law Tamar, "Remain a widow in your father's house until my son Shelah grows up." For he thought, "He might die too, like his brother." So Tamar went to live in her father's house.
After a long time Judah's wife, the daughter of Shua, died. When Judah had finished mourning, he and his friend Hirah the Adullamite went up to Timnah to the sheepshearers.
Tamar was told, "Your father-in-law is going up to Timnah to shear his sheep."
So she took off her widow's clothes, veiled [her face], covered herself, and sat at the entrance to Enaim, which is on the way to Timnah. For she saw that, though Shelah had grown up, she had not been given to him as a wife.
When Judah saw her, he thought she was a prostitute, for she had covered her face.
He went over to her and said, "Come, let me sleep with you," for he did not know that she was his daughter-in-law. She said, "What will you give me for sleeping with me?"
"I will send you a young goat from my flock," he replied. But she said, "Only if you leave something [with me] until you send it."
"What should I give you?" he asked. She answered, "Your signet ring, your cord, and the staff in your hand." So he gave them to her and slept with her, and she got pregnant by him.
She got up and left, then removed her veil and put her widow's clothes back on.
When Judah sent the young goat by his friend the Adullamite in order to get back the items he had left with the woman, he could not find her.
He asked the men of the place, "Where is the cult prostitute who was beside the road at Enaim?" "There has been no cult prostitute here," they answered.
So the Adullamite returned to Judah, saying, "I couldn't find her, and furthermore, the men of the place said, 'There has been no cult prostitute here.'"
Judah replied, "Let her keep [the items] for herself; otherwise we will become a laughingstock. After all, I did send this young goat, but you couldn't find [her]."
About three months later Judah was told, "Your daughter-in-law has been acting like a prostitute, and now she is pregnant." "Bring her out!" Judah said. "Let her be burned [to death]!"
As she was being brought out, she sent her father-in-law [this message]: "I am pregnant by the man to whom these items belong." And she added, "Examine them. Whose signet ring, cord, and staff are these?"
Judah recognized [them] and said, "She is more in the right than I, since I did not give her to my son Shelah." And he did not know her intimately again.
When the time came for her to give birth, there were twins in her womb.
As she was giving birth, one of them put out his hand, and the midwife took it and tied a scarlet [thread] around it, announcing, "This one came out first."
But then he pulled his hand back, and his brother came out. Then she said, "You have broken out [first]!" So he was named Perez.
Then his brother, who had the scarlet [thread] tied to his hand, came out, and was named Zerah.
Now Joseph had been taken to Egypt. An Egyptian [named] Potiphar, an officer of Pharaoh and the captain of the guard, bought him from the Ishmaelites who had brought him there.
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 that the LORD made everything he did successful,
Joseph found favor in his master's sight and became his personal attendant. Potiphar also put him in charge of his household and placed all that he owned under his authority.
From the time that he put him in charge of his household and of all that he owned, the LORD blessed the Egyptian's house because of Joseph. The LORD's blessing was on all that he owned, in his house and in his fields.
He left all that he owned under Joseph's authority; he did not concern himself with anything except the food he ate. Now Joseph was well-built and handsome.
After some time his master's wife looked longingly at Joseph and said, "Sleep with me."
But he refused and said to his master's wife, "Look, my master does not concern himself with anything in his house, and he has put all that he owns under my authority.
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 she spoke to Joseph day after day, he refused to go to bed with her.
Now one day he went into the house to do his work, and none of the household servants was there.
She grabbed him by his garment and said, "Sleep with me!" But leaving his garment in her hand, he escaped and ran outside.
When she realized that he had left his garment with her and had run outside,
she called the household servants. "Look," she said to them, "my husband brought a Hebrew man to us to make fun of us. He came to me so he could sleep with me, and I screamed as loud as I could.
When he heard me screaming for help, he left his garment with me and ran outside."
She put Joseph's garment beside her until his master came home.
Then she told him the same story: "The Hebrew slave you brought to us came to me to make fun of me,
but when I screamed for help, he left his garment with me and ran outside."
When his master heard the story his wife told him-- "These are the things your slave did to me"-- he was furious
and had him thrown into prison, where the king's prisoners were confined. So Joseph was there in prison.
But the LORD was with Joseph and extended kindness to him. He granted him favor in the eyes of the prison warden.
The warden put all the prisoners who were in the prison under Joseph's authority, and he was responsible for everything that was done there.
The warden did not bother with anything under Joseph's authority, because the LORD was with him, and the LORD made everything that he did successful.