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

Psalms 50:18

When thou sawest a thief, then thou consentedst with him, and hast been partaker with adulterers.

Read in other translations