Genesis 38:7

But Er, Judah’s firstborn, was wicked in the sight of the LORD; so the LORD put him to death.