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

Psalms 64:10

The righteous shall be glad in the Lord, and shall trust in him; and all the upright in heart shall glory.

Read in other translations