What he did was wicked in the sight of the LORD, so He put Onan to death as well.