Psalms 106:31

That was credited to him for tzadaqah (righteousness), for all dawar (generation / age / period) to come.

Hebrew, word by word