It happened at that time, that Yehudah went down from his brothers, and turned in to a certain `Adullami, whose name was Hirah.
Yehudah saw there a daughter of a certain Kana`ani whose name was Shu`a. He took her, and went in to her.
She conceived, and bore a son; and he named him `Er.
She conceived again, and bore a son; and she named him Onan.
She yet again bore a son, and named him Shelach: and he was at Keziv, when she bore him.
Yehudah took a wife for `Er, his firstborn, and her name was Tamar.
`Er, Yehudah's firstborn, was wicked in the sight of the LORD. The LORD killed him.
Yehudah said to Onan, "Go in to your brother's wife, and perform the duty of a husband's brother to her, and raise up seed to your brother."
Onan knew that the seed wouldn't be his; and it happened, when he went in to his brother's wife, that he spilled it on the ground, lest he should give seed to his brother.
The thing which he did was evil in the sight of the LORD, and he killed him also.
Then Yehudah said to Tamar, his daughter-in-law, "Remain a widow in your father's house, until Shelach, my son, is grown up;" for he said, "Lest he also die, like his brothers." Tamar went and lived in her father's house.
After many days, Shu`a's daughter, the wife of Yehudah, died. Yehudah was comforted, and went up to his sheep-shearers to Timnah, he and his friend Hirah, the `Adullami.
It was told Tamar, saying, "Behold, your father-in-law is going up to Timnah to shear his sheep."
She took off of her the garments of her widowhood, and covered herself with her veil, and wrapped herself, and sat in the gate of `Enayim, which is by the way to Timnah; for she saw that Shelach was grown up, and she wasn't given to him as a wife.
When Yehudah saw her, he thought that she was a prostitute, for she had covered her face.
He turned to her by the way, and said, "Please come, let me come in to you:" for he didn't know that she was his daughter-in-law. She said, "What will you give me, that you may come in to me?"
He said, "I will send you a kid of the goats from the flock." She said, "Will you give me a pledge, until you send it?"
He said, "What pledge will I give you?" She said, "Your signet and your cord, and your staff that is in your hand." He gave them to her, and came in to her, and she conceived by him.
She arose, and went away, and put off her veil from her, and put on the garments of her widowhood.
Yehudah sent the kid of the goats by the hand of his friend, the `Adullami, to receive the pledge from the woman's hand, but he didn't find her.
Then he asked the men of her place, saying, "Where is the prostitute, that was at `Enayim by the road?" They said, "There has been no prostitute here."
He returned to Yehudah, and said, "I haven't found her; and also the men of the place said, 'There has been no prostitute here.'"
Yehudah said, "Let her keep it, lest we be put to shame. Behold, I sent this kid, and you haven't found her."
It happened about three months later, that it was told Yehudah, saying, "Tamar, your daughter-in-law, has played the prostitute; and moreover, behold, she is with child by prostitution." Yehudah 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, I am with child." She also said, "Please discern whose are these - the signet, and the cords, and the staff."
Yehudah acknowledged them, and said, "She is more righteous than I, because I didn't give her to Shelach, my son." He knew her again no more.
It happened in the time of her travail, that behold, twins were in her womb.
It happened, when she travailed, that one put out a hand: and the midwife took and tied a scarlet thread on his hand, saying, "This came out first."
It happened, as he drew back his hand, that behold, his brother came out, and she said, "Why have you made a breach for yourself?" Therefore his name was called Peretz.
Afterward his brother came out, that had the scarlet thread on his hand, and his name was called Zerach.