Psalm 106:31
ESV
And that was counted to him as righteousness from generation to generation forever.
NIV
This was credited to him as righteousness for endless generations to come.
NASB
And it was credited to him as righteousness, To all generations forever.
CSB
It was credited to him as righteousness throughout all generations to come.
NLT
So he has been regarded as a righteous man ever since that time.
KJV
And that was counted unto him for righteousness unto all generations for evermore.
NKJV
And that was accounted to him for righteousness To all generations forevermore.