Genesis 38

1 It came to pass at that time that Judah departed from his brothers, and visited a certain Adullamite whose name was Hirah. 2 And Judah saw there a daughter of a certain Canaanite whose name was Shua, and he married her and went in to her. 3 So she conceived and bore a son, and he called his name Er. 4 She conceived again and bore a son, and she called his name Onan. 5 And she conceived yet again and bore a son, and called his name Shelah. He was at Chezib when she bore him. . .
— GENESIS 38