John 1:1 (NKJV)
In the beginning was the Word, and the Word was with God, and the Word was God.
Remember, the sins of some people are obvious, leading them to certain judgment. But there are others whose sins will not be revealed until later. In the same way, the good deeds of some people are obvious. And the good deeds done in secret will someday come to light.