Genesis 38:10

10And what he did was wicked in the sight of the Lord, and he put him to death also.
Copyright information for ESV