38 It happened at that time that Judah went down from his brothers and oturned aside to a certain pAdullamite, whose name was Hirah. 2 There Judah saw the daughter of a certain Canaanite whose name was qShua. He took her and went in to her, 3 and she conceived and bore a son, and he called his name rEr. 4 She conceived again and bore a son, and she called his name rOnan. 5 Yet again she bore a son, and she called his name rShelah. Judah1 was in Chezib when she bore him.
6 And Judah took a wife for Er his firstborn, and her name was Tamar. 7 But Er, Judah's firstborn, swas wicked in the sight of the Lord, and the Lord put him to death. 8 Then Judah said to Onan, “Go in to tyour brother's wife and uperform the duty of a brother-in-law to her, and raise up offspring for your brother.” 9 But Onan knew that the offspring would not be his. So whenever he went in to his brother's wife he would waste the semen on the ground, so as not to give offspring to his brother. 10 And what he did was wicked in the sight of the Lord, and he put him to death also. 11 Then Judah said to Tamar his daughter-in-law, v“Remain a widow in your father's house, till Shelah my son grows up”—for he feared that he would die, like his brothers. So Tamar went and remained win her father's house.
12 In the course of time the wife of Judah, Shua's daughter, died. When Judah xwas comforted, he went up to yTimnah to his sheepshearers, he and his friend Hirah the Adullamite. 13 And when Tamar was told, “Your father-in-law is going up to Timnah to shear his sheep,” 14 she took off her widow's garments zand covered herself with a veil, wrapping herself up, and sat at the entrance to aEnaim, which is on the road to Timnah. For she saw that Shelah was grown up, band she had not been given to him in marriage. 15 When Judah saw her, he thought she was a prostitute, for she had covered her face. 16 He turned to her at the roadside and said, “Come, let me come in to you,” for he did not know that she was his daughter-in-law. She said, “What will you give me, that you may come in to me?” 17 He answered, “I will send you a young goat from the flock.” And she said, “If you give me a pledge, until you send it—” 18 He said, “What pledge shall I give you?” She replied, c“Your signet and your cord and your staff that is in your hand.” So he gave them to her and went in to her, and she conceived by him. 19 Then she arose and went away, and taking off dher veil she put on the garments of her widowhood.
20 When Judah sent the young goat by his friend the Adullamite to take back the pledge from the woman's hand, he did not find her. 21 And he asked the men of the place, “Where is the cult prostitute2 who was at eEnaim at the roadside?” And they said, “No cult prostitute has been here.” 22 So he returned to Judah and said, “I have not found her. Also, the men of the place said, ‘No cult prostitute has been here.’” 23 And Judah replied, “Let her keep the things as her own, or we shall be laughed at. You see, I sent this young goat, and you did not find her.”
24 About three months later Judah was told, “Tamar your daughter-in-law fhas been immoral.3 Moreover, she is pregnant by immorality.”4 And Judah said, “Bring her out, and glet her be burned.” 25 As she was being brought out, she sent word to her father-in-law, “By the man to whom these belong, I am pregnant.” And she said, “Please identify whose these are, hthe signet and the cord and the staff.” 26 Then Judah identified them and said, i“She is more righteous than I, since jI did not give her to my son Shelah.” And he did not know her again.
27 When the time of her labor came, there were twins in her womb. 28 And when she was in labor, one put out a hand, and the midwife took and tied a scarlet thread on his hand, saying, “This one came out first.” 29 But as he drew back his hand, behold, his brother came out. And she said, “What a breach you have made for yourself!” Therefore his name was called kPerez.5 30 Afterward his brother came out with the scarlet thread on his hand, and his name was called kZerah.
39 Now Joseph had been brought down to Egypt, and lPotiphar, an officer of Pharaoh, the captain of the guard, an Egyptian, mhad bought him from the nIshmaelites who had brought him down there. 2 oThe Lord was with Joseph, and he became a successful man, and he was in the house of his Egyptian master. 3 His master saw that the Lord was with him and that the Lord pcaused all that he did to succeed in his hands. 4 So Joseph qfound favor in his sight and attended him, and he made him overseer of his house rand put him in charge of all that he had. 5 From the time that he made him overseer in his house and over all that he had, the Lord blessed the Egyptian's house sfor Joseph's sake; the blessing of the Lord was on all that he had, in house and field. 6 So he left all that he had in Joseph's charge, and because of him he had no concern about anything but the food he ate.
Now Joseph was thandsome in form and appearance. 7 And after a time his master's wife cast her eyes on Joseph and said, “Lie with me.” 8 But he refused and said to his master's wife, “Behold, because of me my master has no concern about anything in the house, and uhe has put everything that he has in my charge. 9 He is not greater in this house than I am, nor has he kept back anything from me except you, because you are his wife. How then can I do this great wickedness and vsin against God?” 10 And as she spoke to Joseph day after day, he wwould not listen to her, to lie beside her or to be with her.
11 But one day, when he went into the house to do his work and none of the men of the house was there in the house, 12 xshe caught him by his garment, saying, “Lie with me.” But he left his garment in her hand and fled and got out of the house. 13 And as soon as she saw that he had left his garment in her hand and had fled out of the house, 14 she called to the men of her household and said to them, “See, he has brought among us a Hebrew to laugh at us. He came in to me to lie with me, and I cried out with a loud voice. 15 And as soon as he heard that I lifted up my voice and cried out, he left his garment beside me and fled and got out of the house.” 16 Then she laid up his garment by her until his master came home, 17 and she told him the same story, saying, “The Hebrew servant, whom you have brought among us, came in to me to laugh at me. 18 But as soon as I lifted up my voice and cried, he left his garment beside me and fled out of the house.”
19 As soon as his master heard the words that his wife spoke to him, “This is the way your servant treated me,” his anger was kindled. 20 And Joseph's master took him and yput him into the zprison, the place where the king's prisoners were confined, and he was there in prison. 21 But athe Lord was with Joseph and showed him steadfast love band gave him favor in the sight of the keeper of the prison. 22 And the keeper of the prison cput Joseph in charge of all the prisoners who were in the prison. Whatever was done there, he was the one who did it. 23 The keeper of the prison paid no attention to anything that was in Joseph's charge, because dthe Lord was with him. And whatever he did, the Lord made it succeed.
40 Some time after this, the ecupbearer of the king of Egypt and his baker committed an offense against their lord the king of Egypt. 2 And Pharaoh was angry with his two officers, the chief cupbearer and the chief baker, 3 fand he put them in custody in the house of the captain of the guard, in the prison where Joseph was confined. 4 The captain of the guard appointed Joseph to be with them, and he attended them. They continued for some time in custody.
5 And one night they both dreamed—the cupbearer and the baker of the king of Egypt, who were confined in the prison—each his own dream, and each dream with its own interpretation. 6 When Joseph came to them in the morning, he saw that they were troubled. 7 So he asked Pharaoh's officers who were with him in custody in his master's house, g“Why are your faces downcast today?” 8 They said to him, h“We have had dreams, and there is no one to interpret them.” And Joseph said to them, i“Do not interpretations belong to God? Please tell them to me.”
9 So the chief cupbearer told his dream to Joseph and said to him, “In my dream there was a vine before me, 10 and on the vine there were three branches. As soon as it budded, its blossoms shot forth, and the clusters ripened into grapes. 11 Pharaoh's cup was in my hand, and I took the grapes and pressed them into Pharaoh's cup and placed the cup in Pharaoh's hand.” 12 Then Joseph said to him, j“This is its interpretation: kthe three branches are three days. 13 In three days Pharaoh will llift up your head and restore you to your office, and you shall place Pharaoh's cup in his hand as formerly, when you were his cupbearer. 14 Only remember me, when it is well with you, and please do me the kindness to mention me to Pharaoh, and so get me out of this house. 15 For mI was indeed stolen out of the land of the Hebrews, and nhere also I have done nothing that they should put me into the pit.”
16 When the chief baker saw that the interpretation was favorable, he said to Joseph, “I also had a dream: there were three cake baskets on my head, 17 and in the uppermost basket there were all sorts of baked food for Pharaoh, but the birds were eating it out of the basket on my head.” 18 And Joseph answered and said, o“This is its interpretation: the three baskets are three days. 19 pIn three days Pharaoh will lift up your head—from you!—and qhang you on a tree. And the birds will eat the flesh from you.”
20 On the third day, which was Pharaoh's rbirthday, he made a feast for all his servants and slifted up the head of the chief cupbearer and the head of the chief baker among his servants. 21 tHe restored the chief cupbearer to his position, and uhe placed the cup in Pharaoh's hand. 22 But he vhanged the chief baker, as Joseph had interpreted to them. 23 Yet the chief cupbearer did not remember Joseph, but forgot him.
 38:5 Hebrew He
 38:21 Hebrew sacred woman; a woman who served a pagan deity by prostitution; also verse 22
 38:24 Or has committed prostitution
 38:24 Or by prostitution
 38:29 Perez means a breach