0
And the thing which he did displeased the LORD: wherefore he slew him also. Genesis 38:10
Trivia: Why did God kill Onan?