Genesis 38:25-26
38:25 While they were bringing her out, she sent word to her father-in-law: “I am pregnant by the man to whom these belong.” Then she said, “Identify the one to whom the seal, cord, and staff belong.”
38:26 Judah recognized them and said, “She is more upright than I am, because I wouldn’t give her to Shelah my son.” He did not have sexual relations with her again.