3 and she became pregnant and gave birth to a son, whom Judah named Er.
4 Later she gave birth to another son and named him Onan.
5 Still later she had another son and named him Shelah. She was at Kezib when this third son was born.
6 Judah chose a girl named Tamar to be the wife of his first son Er.
7 But Er, Judah’s oldest son, did what the Lord said was evil, so the Lord killed him.
8 Then Judah said to Er’s brother Onan, “Go and have sexual relations with your dead brother’s wife. It is your duty to provide children for your brother in this way.”
9 But Onan knew that the children would not belong to him, so when he was supposed to have sexual relations with Tamar he did not complete the sex act. This made it impossible for Tamar to become pregnant and for Er to have descendants.