Genesis 38:1-30

Genesis 38:1-30 New International Version (NIV)

At that time, Judah left his brothers and went down to stay with a man of Adullam named Hirah. There Judah met the daughter of a Canaanite man named Shua. He married her and made love to her; she became pregnant and gave birth to a son, who was named Er. She conceived again and gave birth to a son and named him Onan. She gave birth to still another son and named him Shelah. It was at Kezib that she gave birth to him. Judah got a wife for Er, his firstborn, and her name was Tamar. But Er, Judah’s firstborn, was wicked in the LORD’s sight; so the LORD put him to death. Then Judah said to Onan, “Sleep with your brother’s wife and fulfill your duty to her as a brother-in-law to raise up offspring for your brother.” But Onan knew that the child would not be his; so whenever he slept with his brother’s wife, he spilled his semen on the ground to keep from providing offspring for his brother. What he did was wicked in the LORD’s sight; so the LORD put him to death also. Judah then said to his daughter-in-law Tamar, “Live as a widow in your father’s household until my son Shelah grows up.” For he thought, “He may die too, just like his brothers.” So Tamar went to live in her father’s household. After a long time Judah’s wife, the daughter of Shua, died. When Judah had recovered from his grief, he went up to Timnah, to the men who were shearing his sheep, and his friend Hirah the Adullamite went with him. When Tamar was told, “Your father-in-law is on his way to Timnah to shear his sheep,” she took off her widow’s clothes, covered herself with a veil to disguise herself, and then sat down at the entrance to Enaim, which is on the road to Timnah. For she saw that, though Shelah had now grown up, she had not been given to him as his wife. When Judah saw her, he thought she was a prostitute, for she had covered her face. Not realizing that she was his daughter-in-law, he went over to her by the roadside and said, “Come now, let me sleep with you.” “And what will you give me to sleep with you?” she asked. “I’ll send you a young goat from my flock,” he said. “Will you give me something as a pledge until you send it?” she asked. He said, “What pledge should I give you?” “Your seal and its cord, and the staff in your hand,” she answered. So he gave them to her and slept with her, and she became pregnant by him. After she left, she took off her veil and put on her widow’s clothes again. Meanwhile Judah sent the young goat by his friend the Adullamite in order to get his pledge back from the woman, but he did not find her. He asked the men who lived there, “Where is the shrine prostitute who was beside the road at Enaim?” “There hasn’t been any shrine prostitute here,” they said. So he went back to Judah and said, “I didn’t find her. Besides, the men who lived there said, ‘There hasn’t been any shrine prostitute here.’ ” Then Judah said, “Let her keep what she has, or we will become a laughingstock. After all, I did send her this young goat, but you didn’t find her.” About three months later Judah was told, “Your daughter-in-law Tamar is guilty of prostitution, and as a result she is now pregnant.” Judah said, “Bring her out and have her burned to death!” As she was being brought out, she sent a message to her father-in-law. “I am pregnant by the man who owns these,” she said. And she added, “See if you recognize whose seal and cord and staff these are.” Judah recognized them and said, “She is more righteous than I, since I wouldn’t give her to my son Shelah.” And he did not sleep with her again. When the time came for her to give birth, there were twin boys in her womb. As she was giving birth, one of them put out his hand; so the midwife took a scarlet thread and tied it on his wrist and said, “This one came out first.” But when he drew back his hand, his brother came out, and she said, “So this is how you have broken out!” And he was named Perez. Then his brother, who had the scarlet thread on his wrist, came out. And he was named Zerah.

Genesis 38:1-5-27-30 The Message (MSG)

About that time, Judah separated from his brothers and hooked up with a man in Adullam named Hirah. While there, Judah met the daughter of a Canaanite named Shua. He married her, they went to bed, she became pregnant and had a son named Er. She got pregnant again and had a son named Onan. She had still another son; she named this one Shelah. They were living at Kezib when she had him. Judah got a wife for Er, his firstborn. Her name was Tamar. But Judah’s firstborn, Er, grievously offended GOD and GOD took his life. So Judah told Onan, “Go and sleep with your brother’s widow; it’s the duty of a brother-in-law to keep your brother’s line alive.” But Onan knew that the child wouldn’t be his, so whenever he slept with his brother’s widow he spilled his semen on the ground so he wouldn’t produce a child for his brother. GOD was much offended by what he did and also took his life. So Judah stepped in and told his daughter-in-law Tamar, “Live as a widow at home with your father until my son Shelah grows up.” He was worried that Shelah would also end up dead, just like his brothers. So Tamar went to live with her father. Time passed. Judah’s wife, Shua’s daughter, died. When the time of mourning was over, Judah with his friend Hirah of Adullam went to Timnah for the sheep shearing. Tamar was told, “Your father-in-law has gone to Timnah to shear his sheep.” She took off her widow’s clothes, put on a veil to disguise herself, and sat at the entrance to Enaim which is on the road to Timnah. She realized by now that even though Shelah was grown up, she wasn’t going to be married to him. Judah saw her and assumed she was a prostitute since she had veiled her face. He left the road and went over to her. He said, “Let me sleep with you.” He had no idea that she was his daughter-in-law. She said, “What will you pay me?” “I’ll send you,” he said, “a kid goat from the flock.” She said, “Not unless you give me a pledge until you send it.” “So what would you want in the way of a pledge?” She said, “Your personal seal-and-cord and the staff you carry.” He handed them over to her and slept with her. And she got pregnant. She then left and went home. She removed her veil and put her widow’s clothes back on. Judah sent the kid goat by his friend from Adullam to recover the pledge from the woman. But he couldn’t find her. He asked the men of that place, “Where’s the prostitute that used to sit by the road here near Enaim?” They said, “There’s never been a prostitute here.” He went back to Judah and said, “I couldn’t find her. The men there said there never has been a prostitute there.” Judah said, “Let her have it then. If we keep looking, everyone will be poking fun at us. I kept my part of the bargain—I sent the kid goat but you couldn’t find her.” Three months or so later, Judah was told, “Your daughter-in-law has been playing the whore—and now she’s a pregnant whore.” Judah yelled, “Get her out here. Burn her up!” As they brought her out, she sent a message to her father-in-law, “I’m pregnant by the man who owns these things. Identify them, please. Who’s the owner of the seal-and-cord and the staff?” Judah saw they were his. He said, “She’s in the right; I’m in the wrong—I wouldn’t let her marry my son Shelah.” He never slept with her again. When her time came to give birth, it turned out that there were twins in her womb. As she was giving birth, one put his hand out; the midwife tied a red thread on his hand, saying, “This one came first.” But then he pulled it back and his brother came out. She said, “Oh! A breakout!” So she named him Perez (Breakout). Then his brother came out with the red thread on his hand. They named him Zerah (Bright).

Genesis 38:1-30 New American Standard Bible - NASB 1995 (NASB1995)

And it came about at that time, that Judah departed from his brothers and visited a certain Adullamite, whose name was Hirah. Judah saw there a daughter of a certain Canaanite whose name was Shua; and he took her and went in to her. So she conceived and bore a son and he named him Er. Then she conceived again and bore a son and named him Onan. She bore still another son and named him Shelah; and it was at Chezib that she bore him. Now Judah took a wife for Er his firstborn, and her name was Tamar. But Er, Judah’s firstborn, was evil in the sight of the LORD, so the LORD took his life. Then Judah said to Onan, “Go in to your brother’s wife, and perform your duty as a brother-in-law to her, and raise up offspring for your brother.” Onan knew that the offspring would not be his; so when he went in to his brother’s wife, he wasted his seed on the ground in order not to give offspring to his brother. But what he did was displeasing in the sight of the LORD; so He took his life 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, “I am afraid that he too may die like his brothers.” So Tamar went and lived in her father’s house. Now after a considerable time Shua’s daughter, the wife of Judah, died; and when the time of mourning was ended, Judah went up to his sheepshearers at Timnah, he and his friend Hirah the Adullamite. It was told to Tamar, “Behold, your father-in-law is going up to Timnah to shear his sheep.” So she removed her widow’s garments and covered herself with a veil, and wrapped herself, and sat in the gateway of Enaim, which is on the road to Timnah; for she saw that Shelah had grown up, and she had not been given to him as a wife. When Judah saw her, he thought she was a harlot, for she had covered her face. So he turned aside to her by the road, and said, “Here now, let me come in to you”; for he did not know that she was his daughter-in-law. And she said, “What will you give me, that you may come in to me?” He said, therefore, “I will send you a young goat from the flock.” She said, moreover, “Will you give a pledge until you send it?” He said, “What pledge shall I give you?” And she said, “Your seal 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. Then she arose and departed, and removed her veil and put on her widow’s garments. When Judah sent the young goat by his friend the Adullamite, to receive the pledge from the woman’s hand, he did not find her. He asked the men of her place, saying, “Where is the temple prostitute who was by the road at Enaim?” But they said, “There has been no temple prostitute here.” So he returned to Judah, and said, “I did not find her; and furthermore, the men of the place said, ‘There has been no temple prostitute here.’ ” Then Judah said, “Let her keep them, otherwise we will become a laughingstock. After all, I sent this young goat, but you did not find her.” Now it was about three months later that Judah was informed, “Your daughter-in-law Tamar has played the harlot, and behold, she is also with child by harlotry.” Then Judah said, “Bring her out and let her be burned!” It was while she was being brought out that she sent to her father-in-law, saying, “I am with child by the man to whom these things belong.” And she said, “Please examine and see, whose signet ring and cords and staff are these?” Judah recognized them, and said, “She is more righteous than I, inasmuch as I did not give her to my son Shelah.” And he did not have relations with her again. It came about at the time she was giving birth, that behold, there were twins in her womb. Moreover, it took place while she was giving birth, one put out a hand, and the midwife took and tied a scarlet thread on his hand, saying, “This one came out first.” But it came about as he drew back his hand, that behold, his brother came out. Then she said, “What a breach you have made for yourself!” So he was named Perez. Afterward his brother came out who had the scarlet thread on his hand; and he was named Zerah.

Genesis 38:1-30 New Living Translation (NLT)

About this time, Judah left home and moved to Adullam, where he stayed with a man named Hirah. There he saw a Canaanite woman, the daughter of Shua, and he married her. When he slept with her, she became pregnant and gave birth to a son, and he named the boy Er. Then she became pregnant again and gave birth to another son, and she named him Onan. And when she gave birth to a third son, she named him Shelah. At the time of Shelah’s birth, they were living at Kezib. In the course of time, Judah arranged for his firstborn son, Er, to marry a young woman named Tamar. But Er was a wicked man in the LORD’s sight, so the LORD took his life. Then Judah said to Er’s brother Onan, “Go and marry Tamar, as our law requires of the brother of a man who has died. You must produce an heir for your brother.” But Onan was not willing to have a child who would not be his own heir. So whenever he had intercourse with his brother’s wife, he spilled the semen on the ground. This prevented her from having a child who would belong to his brother. But the LORD considered it evil for Onan to deny a child to his dead brother. So the LORD took Onan’s life, too. Then Judah said to Tamar, his daughter-in-law, “Go back to your parents’ home and remain a widow until my son Shelah is old enough to marry you.” (But Judah didn’t really intend to do this because he was afraid Shelah would also die, like his two brothers.) So Tamar went back to live in her father’s home. Some years later Judah’s wife died. After the time of mourning was over, Judah and his friend Hirah the Adullamite went up to Timnah to supervise the shearing of his sheep. Someone told Tamar, “Look, your father-in-law is going up to Timnah to shear his sheep.” Tamar was aware that Shelah had grown up, but no arrangements had been made for her to come and marry him. So she changed out of her widow’s clothing and covered herself with a veil to disguise herself. Then she sat beside the road at the entrance to the village of Enaim, which is on the road to Timnah. Judah noticed her and thought she was a prostitute, since she had covered her face. So he stopped and propositioned her. “Let me have sex with you,” he said, not realizing that she was his own daughter-in-law. “How much will you pay to have sex with me?” Tamar asked. “I’ll send you a young goat from my flock,” Judah promised. “But what will you give me to guarantee that you will send the goat?” she asked. “What kind of guarantee do you want?” he replied. She answered, “Leave me your identification seal and its cord and the walking stick you are carrying.” So Judah gave them to her. Then he had intercourse with her, and she became pregnant. Afterward she went back home, took off her veil, and put on her widow’s clothing as usual. Later Judah asked his friend Hirah the Adullamite to take the young goat to the woman and to pick up the things he had given her as his guarantee. But Hirah couldn’t find her. So he asked the men who lived there, “Where can I find the shrine prostitute who was sitting beside the road at the entrance to Enaim?” “We’ve never had a shrine prostitute here,” they replied. So Hirah returned to Judah and told him, “I couldn’t find her anywhere, and the men of the village claim they’ve never had a shrine prostitute there.” “Then let her keep the things I gave her,” Judah said. “I sent the young goat as we agreed, but you couldn’t find her. We’d be the laughingstock of the village if we went back again to look for her.” About three months later, Judah was told, “Tamar, your daughter-in-law, has acted like a prostitute. And now, because of this, she’s pregnant.” “Bring her out, and let her be burned!” Judah demanded. But as they were taking her out to kill her, she sent this message to her father-in-law: “The man who owns these things made me pregnant. Look closely. Whose seal and cord and walking stick are these?” Judah recognized them immediately and said, “She is more righteous than I am, because I didn’t arrange for her to marry my son Shelah.” And Judah never slept with Tamar again. When the time came for Tamar to give birth, it was discovered that she was carrying twins. While she was in labor, one of the babies reached out his hand. The midwife grabbed it and tied a scarlet string around the child’s wrist, announcing, “This one came out first.” But then he pulled back his hand, and out came his brother! “What!” the midwife exclaimed. “How did you break out first?” So he was named Perez. Then the baby with the scarlet string on his wrist was born, and he was named Zerah.

Genesis 38:1-30 King James Version (KJV)

And it came to pass at that time, that Judah went down from his brethren, and turned in to a certain Adullamite, whose name was Hirah. And Judah saw there a daughter of a certain Canaanite, whose name was Shuah; and he took her, and went in unto her. And she conceived, and bare a son; and he called his name Er. And she conceived again, and bare a son; and she called his name Onan. And she yet again conceived, and bare a son; and called his name Shelah: and he was at Chezib, when she bare him. And Judah took a wife for Er his firstborn, whose name was Tamar. And Er, Judah's firstborn, was wicked in the sight of the LORD; and the LORD slew him. And Judah said unto Onan, Go in unto thy brother's wife, and marry her, and raise up seed to thy brother. And Onan knew that the seed should not be his; and it came to pass, when he went in unto his brother's wife, that he spilled it on the ground, lest that he should give seed to his brother. And the thing which he did displeased the LORD: wherefore he slew him also. Then said Judah to Tamar his daughter in law, Remain a widow at thy father's house, till Shelah my son be grown: for he said, Lest peradventure he die also, as his brethren did. And Tamar went and dwelt in her father's house. And in process of time the daughter of Shuah Judah's wife died; and Judah was comforted, and went up unto his sheepshearers to Timnath, he and his friend Hirah the Adullamite. And it was told Tamar, saying, Behold thy father in law goeth up to Timnath to shear his sheep. And she put her widow's garments off from her, and covered her with a vail, and wrapped herself, and sat in an open place, which is by the way to Timnath; for she saw that Shelah was grown, and she was not given unto him to wife. When Judah saw her, he thought her to be an harlot; because she had covered her face. And he turned unto her by the way, and said, Go to, I pray thee, let me come in unto thee; (for he knew not that she was his daughter in law.) And she said, What wilt thou give me, that thou mayest come in unto me? And he said, I will send thee a kid from the flock. And she said, Wilt thou give me a pledge, till thou send it? And he said, What pledge shall I give thee? And she said, Thy signet, and thy bracelets, and thy staff that is in thine hand. And he gave it her, and came in unto her, and she conceived by him. And she arose, and went away, and laid by her vail from her, and put on the garments of her widowhood. And Judah sent the kid by the hand of his friend the Adullamite, to receive his pledge from the woman's hand: but he found her not. Then he asked the men of that place, saying, Where is the harlot, that was openly by the way side? And they said, There was no harlot in this place. And he returned to Judah, and said, I cannot find her; and also the men of the place said, that there was no harlot in this place. And Judah said, Let her take it to her, lest we be shamed: behold, I sent this kid, and thou hast not found her. And it came to pass about three months after, that it was told Judah, saying, Tamar thy daughter in law hath played the harlot; and also, behold, she is with child by whoredom. And Judah said, Bring her forth, and let her be burnt. When she was brought forth, she sent to her father in law, saying, By the man, whose these are, am I with child: and she said, Discern, I pray thee, whose are these, the signet, and bracelets, and staff. And Judah acknowledged them, and said, She hath been more righteous than I; because that I gave her not to Shelah my son. And he knew her again no more. And it came to pass in the time of her travail, that, behold, twins were in her womb. And it came to pass, when she travailed, that the one put out his hand: and the midwife took and bound upon his hand a scarlet thread, saying, This came out first. And it came to pass, as he drew back his hand, that, behold, his brother came out: and she said, How hast thou broken forth? this breach be upon thee: therefore his name was called Pharez. And afterward came out his brother, that had the scarlet thread upon his hand: and his name was called Zarah.

Genesis 38:1-30 New Century Version (NCV)

About that time, Judah left his brothers and went to stay with a man named Hirah in the town of Adullam. There Judah met a Canaanite girl, the daughter of a man named Shua, and married her. Judah had sexual relations with her, and she became pregnant and gave birth to a son, whom Judah named Er. Later she gave birth to another son and named him Onan. Still later she had another son and named him Shelah. She was at Kezib when this third son was born. Judah chose a girl named Tamar to be the wife of his first son Er. But Er, Judah’s oldest son, did what the LORD said was evil, so the LORD killed him. Then Judah said to Er’s brother Onan, “Go and have sexual relations with your dead brother’s wife. It is your duty to provide children for your brother in this way.” But Onan knew that the children would not belong to him, so when he was supposed to have sexual relations with Tamar he did not complete the sex act. This made it impossible for Tamar to become pregnant and for Er to have descendants. The LORD was displeased by this wicked thing Onan had done, so the LORD killed Onan also. Then Judah said to his daughter-in-law Tamar, “Go back to live in your father’s house, and don’t marry until my young son Shelah grows up.” Judah was afraid that Shelah also would die like his brothers. So Tamar returned to her father’s home. After a long time Judah’s wife, the daughter of Shua, died. After Judah had gotten over his sorrow, he went to Timnah to his men who were cutting the wool from his sheep. His friend Hirah from Adullam went with him. Tamar learned that Judah, her father-in-law, was going to Timnah to cut the wool from his sheep. So she took off the clothes that showed she was a widow and covered her face with a veil to hide who she was. Then she sat down by the gate of Enaim on the road to Timnah. She did this because Judah’s younger son Shelah had grown up, but Judah had not made plans for her to marry him. When Judah saw her, he thought she was a prostitute, because she had covered her face with a veil. So Judah went to her and said, “Let me have sexual relations with you.” He did not know that she was Tamar, his daughter-in-law. She asked, “What will you give me if I let you have sexual relations with me?” Judah answered, “I will send you a young goat from my flock.” She answered, “First give me something to keep as a deposit until you send the goat.” Judah asked, “What do you want me to give you as a deposit?” Tamar answered, “Give me your seal and its cord, and give me your walking stick.” So Judah gave these things to her. Then Judah and Tamar had sexual relations, and Tamar became pregnant. When Tamar went home, she took off the veil that covered her face and put on the clothes that showed she was a widow. Judah sent his friend Hirah with the young goat to find the woman and get back his seal and the walking stick he had given her, but Hirah could not find her. He asked some of the people at the town of Enaim, “Where is the prostitute who was here by the road?” They answered, “There has never been a prostitute here.” So he went back to Judah and said, “I could not find the woman, and the people who lived there said, ‘There has never been a prostitute here.’ ” Judah said, “Let her keep the things. I don’t want people to laugh at us. I sent her the goat as I promised, but you could not find her.” About three months later someone told Judah, “Tamar, your daughter-in-law, is guilty of acting like a prostitute, and now she is pregnant.” Then Judah said, “Bring her out and let her be burned to death.” When the people went to bring Tamar out, she sent a message to her father-in-law that said, “The man who owns these things has made me pregnant. Look at this seal and its cord and this walking stick, and tell me whose they are.” Judah recognized them and said, “She is more in the right than I. She did this because I did not give her to my son Shelah as I promised.” And Judah did not have sexual relations with her again. When the time came for Tamar to give birth, there were twins in her body. While she was giving birth, one baby put his hand out. The nurse tied a red string on his hand and said, “This baby came out first.” But he pulled his hand back in, so the other baby was born first. The nurse said, “So you are able to break out first,” and they named him Perez. After this, the baby with the red string on his hand was born, and they named him Zerah.

Genesis 38:1-30 American Standard Version (ASV)

And it came to pass at that time, that Judah went down from his brethren, and turned in to a certain Adullamite, whose name was Hirah. And Judah saw there a daughter of a certain Canaanite whose name was Shua; and he took her, and went in unto her. And she conceived, and bare a son; and he called his name Er. And she conceived again, and bare a son; and she called his name Onan. And she yet again bare a son, and called his name Shelah: and he was at Chezib, when she bare him. And Judah took a wife for Er his first-born, and her name was Tamar. And Er, Judah’s first-born, was wicked in the sight of Jehovah; and Jehovah slew him. And Judah said unto Onan, Go in unto thy brother’s wife, and perform the duty of a husband’s brother unto her, and raise up seed to thy brother. And Onan knew that the seed would not be his; and it came to pass, when he went in unto his brother’s wife, that he spilled it on the ground, lest he should give seed to his brother. And the thing which he did was evil in the sight of Jehovah: and he slew him also. Then said Judah to Tamar his daughter-in-law, Remain a widow in thy father’s house, till Shelah my son be grown up; for he said, Lest he also die, like his brethren. And Tamar went and dwelt in her father’s house. And in process of time Shua’s daughter, the wife of Judah, died; and Judah was comforted, and went up unto his sheep-shearers to Timnah, he and his friend Hirah the Adullamite. And it was told Tamar, saying, Behold, thy father-in-law goeth up to Timnah to shear his sheep. And she put off from her the garments of her widowhood, and covered herself with her veil, and wrapped herself, and sat in the gate of Enaim, which is by the way to Timnah; for she saw that Shelah was grown up, and she was not given unto him to wife. When Judah saw her, he thought her to be a harlot; for she had covered her face. And he turned unto her by the way, and said, Come, I pray thee, let me come in unto thee: for he knew not that she was his daughter-in-law. And she said, What wilt thou give me, that thou mayest come in unto me? And he said, I will send thee a kid of the goats from the flock. And she said, Wilt thou give me a pledge, till thou send it? And he said, What pledge shall I give thee? And she said, Thy signet and thy cord, and thy staff that is in thy hand. And he gave them to her, and came in unto her, and she conceived by him. And she arose, and went away, and put off her veil from her, and put on the garments of her widowhood. And Judah sent the kid of the goats by the hand of his friend the Adullamite, to receive the pledge from the woman’s hand: but he found her not. Then he asked the men of her place, saying, Where is the prostitute, that was at Enaim by the wayside? And they said, There hath been no prostitute here. And he returned to Judah, and said, I have not found her; and also the men of the place said, There hath been no prostitute here. And Judah said, Let her take it to her, lest we be put to shame: behold, I sent this kid, and thou hast not found her. And it came to pass about three months after, that it was told Judah, saying, Tamar thy daughter-in-law hath played the harlot; and moreover, behold, she is with child by whoredom. And Judah said, Bring her forth, and let her be burnt. When she was brought forth, she sent to her father-in-law, saying, By the man, whose these are, am I with child: and she said, Discern, I pray thee, whose are these, the signet, and the cords, and the staff. And Judah acknowledged them, and said, She is more righteous than I, forasmuch as I gave her not to Shelah my son. And he knew her again no more. And it came to pass in the time of her travail, that, behold, twins were in her womb. And it came to pass, when she travailed, that one put out a hand: and the midwife took and bound upon his hand a scarlet thread, saying, This came out first. And it came to pass, as he drew back his hand, that, behold, his brother came out: and she said, Wherefore hast thou made a breach for thyself? therefore his name was called Perez. And afterward came out his brother, that had the scarlet thread upon his hand: and his name was called Zerah.

Genesis 38:1-30 Amplified Bible (AMP)

Now at that time, Judah left his brothers and went down to [stay with] a certain Adullamite named Hirah. There Judah saw a daughter of Shua, a Canaanite, and he took her [as his wife] and lived with her. So she conceived and gave birth to a son and Judah named him Er. Then she conceived again and gave birth to a son and named him Onan. Again she conceived and gave birth to still another son and named him Shelah. It was at Chezib that she gave birth to him. Now Judah took a wife for Er his firstborn; her name was Tamar. But Er, Judah’s firstborn, was evil in the sight of the LORD, and the LORD killed him [in judgment]. Then Judah told Onan, “Go in to your brother’s widow, and perform your duty as a brother-in-law [under the levirate marriage custom]; [be her husband and] raise children for [the name of] your brother.” Onan knew that the child (heir) would not be his [but his dead brother’s]; so whenever he lay with his brother’s widow, he spilled his seed on the ground [to prevent conception], so that he would not give a child to his brother. But what he did was displeasing in the sight of the LORD; therefore He killed him also [in judgment]. Then Judah said to Tamar, his daughter-in-law, “Remain a widow at your father’s house until Shelah my [youngest] son is grown”; [but he was deceiving her] for he thought that [if Shelah should marry her] he too might die like his brothers did. So Tamar went and lived in her father’s house. But quite a while later, Judah’s wife, the daughter of Shua, died; and when the time of mourning was ended, he went up to his sheepshearers at Timnah with his friend Hirah the Adullamite. Tamar was told, “Listen, your father-in-law is going up to Timnah to shear his sheep.” So she removed her widow’s clothes and covered herself with a veil, and wrapped herself up [in disguise], and sat in the gateway of Enaim, which is on the road to Timnah; for she saw that Shelah had grown up, and she had not been given to him as a wife [as Judah had promised]. When Judah saw her, he thought she was a [temple] prostitute, for she had covered her face [as such women did]. He turned to her by the road, and said, “Please come, let me lie with you”; for he did not know that she was his daughter-in-law. And she said, “What will you give me, that you may lie with me?” He answered, “I will send you a young goat from the flock.” And she said, “Will you give me a pledge [as a deposit] until you send it?” He said, “What pledge shall I give you?” She said, “Your seal and your cord, and the staff that is in your hand.” So he gave them to her and was intimate with her, and she conceived by him. Then she got up and left, and removed her veil and put on her widow’s clothing. When Judah sent the young goat by his friend the Adullamite, to get his pledge [back] from the woman, he was unable to find her. He asked the men of that place, “Where is the temple prostitute who was by the roadside at Enaim?” They said, “There was no prostitute here.” So he returned to Judah, and said, “I cannot find her; also the local men said, ‘There was no prostitute around here.’ ” Then Judah said, “Let her keep the things (pledge articles) for herself, otherwise we will be a laughingstock [searching everywhere for her]. After all, I sent this young goat, but you did not find her.” About three months later Judah was told, “Tamar your daughter-in-law has played the [role of a] prostitute, and she is with child because of her immorality.” So Judah said, “Bring her out and let her be burned [to death as punishment]!” While she was being brought out, she [took the things Judah had given her and] sent [them along with a message] to her father-in-law, saying, “I am with child by the man to whom these articles belong.” And she added, “Please examine [them carefully] and see [clearly] to whom these things belong, the seal and the cord and staff.” Judah recognized the articles, and said, “She has been more righteous [in this matter] than I, because I did not give her to my son Shelah [as I had promised].” And Judah did not have [intimate] relations with her again. Now when the time came for her to give birth, there were twins in her womb. And when she was in labor, one [baby] put out his hand, and the midwife took his hand and tied a scarlet thread on it, saying, “This one was born first.” But he pulled back his hand, and his brother was born first. And she said, “What a breach you have made for yourself [to be the firstborn]!” So he was named Perez (breach, break forth). Afterward his brother who had the scarlet [thread] on his hand was born and was named Zerah (brightness).

Genesis 38:1-30 English Standard Version 2016 (ESV)

It happened at that time that Judah went down from his brothers and turned aside to a certain Adullamite, whose name was Hirah. There Judah saw the daughter of a certain Canaanite whose name was Shua. He took her and went in to her, and she conceived and bore a son, and he called his name Er. She conceived again and bore a son, and she called his name Onan. Yet again she bore a son, and she called his name Shelah. Judah was in Chezib when she bore him. And Judah took a wife for Er his firstborn, and her name was Tamar. But Er, Judah’s firstborn, was wicked in the sight of the LORD, and the LORD put him to death. Then Judah said to Onan, “Go in to your brother’s wife and perform the duty of a brother-in-law to her, and raise up offspring for your brother.” 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. And what he did was wicked in the sight of the LORD, and he put him to death also. Then Judah said to Tamar his daughter-in-law, “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 in her father’s house. In the course of time the wife of Judah, Shua’s daughter, died. When Judah was comforted, he went up to Timnah to his sheepshearers, he and his friend Hirah the Adullamite. And when Tamar was told, “Your father-in-law is going up to Timnah to shear his sheep,” she took off her widow’s garments and covered herself with a veil, wrapping herself up, and sat at the entrance to Enaim, which is on the road to Timnah. For she saw that Shelah was grown up, and she had not been given to him in marriage. When Judah saw her, he thought she was a prostitute, for she had covered her face. 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?” 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—” He said, “What pledge shall I give you?” She replied, “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. Then she arose and went away, and taking off her veil she put on the garments of her widowhood. 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. And he asked the men of the place, “Where is the cult prostitute who was at Enaim at the roadside?” And they said, “No cult prostitute has been here.” 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.’” 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.” About three months later Judah was told, “Tamar your daughter-in-law has been immoral. Moreover, she is pregnant by immorality.” And Judah said, “Bring her out, and let her be burned.” 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, the signet and the cord and the staff.” Then Judah identified them and said, “She is more righteous than I, since I did not give her to my son Shelah.” And he did not know her again. When the time of her labor came, there were twins in her womb. 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.” 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 Perez. Afterward his brother came out with the scarlet thread on his hand, and his name was called Zerah.