But Onan knew that the family would not be his, so when he cohabited with his brother's widow, he prevented conception, lest he should raise up a child for his brother.
Then Judah said to Tamar, his daughter-in-law, Remain a widow at your father's house till Shelah my [youngest] son is grown; for he thought, Lest perhaps [if Shelah should marry her] he would die also, as his brothers did. So Tamar went and lived in her father's house.
But later Judah's wife, the daughter of Shuah, died; and when Judah was comforted, he went up to his sheepshearers at Timnath with his friend Hirah the Adullamite.
So she put off her widow's garments and covered herself with a veil, wrapped herself up [in disguise], and sat in the entrance of Enaim, which is by the road to Timnath; for she saw that Shelah was grown and she was not given to him as his wife.
He turned to her by the road and said, Come, let me have intercourse 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 have intercourse with me?
And he said, What pledge shall I give you? She said, Your signet [seal], your [signet] cord, and your staff that is in your hand. And he gave them to her and came in to her, and she became pregnant by him.
He asked the men of that place, Where is the harlot or cult prostitute who was openly by the roadside? They said, There was no harlot or temple prostitute here.
But about three months later Judah was told, Tamar your daughter-in-law has played the harlot, and also she is with child by her lewdness. And Judah said, Bring her forth and let her be burned!
When she was brought forth, she [took the things he had given her in pledge and] sent [them] to her father-in-law, saying, I am with child by the man to whom these articles belong. Then she added, Make out clearly, I pray you, to whom these belong, the signet [seal], [signet] cord, and staff.
And Judah acknowledged them and said, She has been more righteous and just than I, because I did not give her to Shelah my son. And he did not cohabit with her again.
And when she was in labor, one baby put out his hand; and the midwife took his hand and bound upon it a scarlet thread, saying, This baby was born first.
But he drew back his hand, and behold, his brother was born first. And she said, What a breaking forth you have made for yourself! Therefore his name was called Perez [breaking forth]. [Matt. 1:3.]