Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

Genesis 38:4

And she conceived again, and bare a son; and she called his name Onan.

Read in other translations