But since Onan knew that the offspring would not be his, he spilled his semen on the ground whenever he went in to his brother's wife, so that he would not give offspring to his brother.
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 feared that he too would die, like his brothers. So Tamar went to live in her father's house.
In course of time the wife of Judah, Shua's daughter, died; when Judah's time of mourning was over, he went up to Timnah to his sheepshearers, he and his friend Hirah the Adullamite.
she put off her widow's garments, put on a veil, wrapped herself up, and sat down at the entrance to Enaim, which is on the road to Timnah. She saw that Shelah was grown up, yet she had not been given to him in marriage.
He went over to her at the road side, 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 said, "What pledge shall I give you?" She replied, "Your signet and your cord, and the staff that is in your hand." So he gave them to her, and went in to her, and she conceived by him.
About three months later Judah was told, "Your daughter-in-law Tamar has played the whore; moreover she is pregnant as a result of whoredom." 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, "It was the owner of these who made me pregnant." And she said, "Take note, please, whose these are, the signet and the cord and the staff."
Then Judah acknowledged 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 lie with her again.