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.