Psalms 106:31 (KJV)

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