Genesis 38:10-11 (Geneva)
10 And it was wicked in the eyes of the Lord, which he did: wherefore he slewe him also.
11 Then said Iudah to Tamar his daughter in lawe, Remaine a widowe in thy fathers house, till Shelah my sonne growe vp (for he thought thus, Least he die as well as his brethren.) So Tamar went and dwelt in her fathers house.
About Genesis 38: This chapter sits between Joseph’s story and the later history of Jacob’s family. It moves the focus from Joseph to his brother Judah. The setting is Canaan, where Judah leaves his brothers and marries a local woman. He has three sons. Two die because they are wicked in God’s eyes. Judah keeps his daughter-in-law Tamar as a widow, waiting for his third son Shelah to grow up. But he fears losing Shelah too, so he does not give her to him as the law requires. This is a failure of duty and faith. Read the study notes
2 verses · Compare in parallel · Read all of Genesis 38