Reference

Genesis 38:6

And Judah took a wife for Er his firstborn, whose name was Tamar.
4

And she conceived again, and bare a son; and she called his name Onan.

5

And she yet again conceived, and bare a son; and called his name Shelah: and he was at Chezib, when she bare him.

6

And Judah took a wife for Er his firstborn, whose name was Tamar.

7

And Er, Judah’s firstborn, was wicked in the sight of the Lord; and the Lord slew him.

8

And Judah said unto Onan, Go in unto thy brother’s wife, and marry her, and raise up seed to thy brother.