Genesis 38:7 in the King James Version
And Er, Judah’s firstborn, was wicked in the sight of the LORD; and the LORD slew him.
Context
6 Judah took a wife for Er, his firstborn, and her name was Tamar.
7 Er, Judah’s firstborn, was wicked in the LORD’s sight. So the LORD killed him.
8 Judah said to Onan, “Go in to your brother’s wife, and perform the duty of a husband’s brother to her, and raise up offspring for your brother.”