Genesis 38:4-7 (Webster)
4 And she conceived again, and bore a son; and she called his name Onan.
5 And she yet again conceived, and bore a son; and called his name Shelah: and he was at Chezib, when she bore him.
6 And Judah took a wife for Er his first-born, whose name was Tamar.
7 And Er, Judah's first-born, was wicked in the sight of the LORD; and the LORD slew him.
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
4 verses · Compare in parallel · Read all of Genesis 38