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

Psalms 106:39

Thus were they defiled with their own works, and went a whoring with their own inventions.

Read in other translations