Genesis 38:10

New American Standard Bible (NASB)
But what he did was displeasing in the sight of the Lord; so He took his life also.

Read Genesis 38:10 in other translations