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

Psalms 106:31

That was credited to him for righteousness, for all generations to come.

Read in other translations