Genesis 38:8
8 Then Judah said to Onan, "Lie with your brother's wife and fulfill your duty to her as a brother-in-law to produce offspring for your brother."
Genesis 38:9
9 But Onan knew that the offspring would not be his; so whenever he lay with his brother's wife, he spilled his sperm on the ground to keep from producing offspring for his brother.
Genesis 38:11
11 Judah then said to his daughter-in-law Tamar, "Live as a widow in your father's house 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 house.
Genesis 38:12
12 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.
Genesis 38:14
14 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.
Genesis 38:16
16 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.
Genesis 38:18
18 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.
Genesis 38:20
20 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.
Genesis 38:21
21 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.
Genesis 38:22
22 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.'"