Genesis 38:8-18

8 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."
9 But Onan knew that the offspring would not be his; so when he went in to his brother's wife he spilled the semen on the ground, lest he should give offspring to his brother.
10 And what he did was displeasing in the sight of the LORD, and he slew him also.
11 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 dwelt in her father's house.
12 In course of time the wife of Judah, Shua's daughter, died; and when Judah was comforted, he went up to Timnah to his sheepshearers, he and his friend Hirah the Adullamite.
13 And when Tamar was told, "Your father-in-law is going up to Timnah to shear his sheep,"
14 she put off her widow's garments, and put on 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.
15 When Judah saw her, he thought her to be a harlot, for she had covered her face.
16 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?"
17 He answered, "I will send you a kid from the flock." And she said, "Will you give me a pledge, till you send it?"
18 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.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.