Genesis 38:10

ESV
“And what he did was wicked in the sight of the LORD, and he put him to death also.”