King James Version (KJV) - Psalms 106:31 >

And that was counted unto him for righteousness unto all generations for evermore.

Berean Study Bible (BSB) - Psalms 106:31 >

It was credited to him as righteousness for endless generations to come.