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

Psalms 94:12

Blessed is the man whom thou chastenest, O Lord, and teachest him out of thy law;

Read in other translations