2 There Judah saw the daughter of a Canaanite whose name was Shua, and he married her. After he slept with her,
3 she became pregnant and gave birth to a son, whom she named Er.
4 She became pregnant again, gave birth to a son, and named him Onan.
5 Then she gave birth to one more son and named him Shelah. She was in Chezib when she gave birth to him.
6 Judah married his oldest son Er to a woman named Tamar.
7 But the Lord considered Judah’s oldest son Er immoral, and the Lord put him to death.
8 Judah said to Onan, "Go to your brother’s wife, do your duty as her brother-in-law, and provide children for your brother."