3 and they had three sons. He named the first one Er;
4 she named the next one Onan.
5 The third one was born when Judah was in Chezib, and she named him Shelah.
6 Later, Judah chose Tamar as a wife for Er, his eldest son.
7 But Er was very evil, and the Lord took his life.
8 So Judah told Onan, “It's your duty to marry Tamar and have a child for your brother.”
9 Onan knew the child would not be his, and when he had sex with Tamar, he made sure that she would not get pregnant.