Genesis 38:24-26

24 And it came to pass about three months after, that it was told Judah, saying, Tamar your daughter in law has played the harlot; and also, behold, she is with child by prostitution. And Judah said, Bring her forth, and let her be burnt.

25 When she was brought forth, she sent to her father in law, saying, By the man, whose these are, am I with child: and she said, Discern, I pray you, whose are these, the signet, and bracelets, and staff.

26 And Judah acknowledged them, and said, She has been more righteous than I; because that I gave her not to Shelah my son. And he knew her again no more.