Psalms of Solomon 9:5
3 For none that do evil can be hidden from your knowledge. Lord, you know of the righteous deeds of your devout; where will a person hide from your knowledge, O God? 4 We are free to choose and do what we will to do right or wrong in how we live our lives; in your justice you watch mortals closely. 5 Those who do what is right save up life for themselves with the Lord, and those doing what is wrong cause their own lives to be destroyed; for the Lord's righteous judgments come down on man and household. 6 To whom will you be kind, O God, except to those who appeal to the Lord? He will cleanse from sin the person who both confesses and publically acknowledges it. For all of these things we are ashamed, and we are embarrassed.
Romans 2:5
5 But because of your stubbornness and your unrepentant heart, you are storing up wrath for yourselves in the day of wrath, when God’s righteous judgment is revealed! 6 He will reward each one according to his works: 7 eternal life to those who by perseverance in good works seek glory and honor and immortality, 8 but wrath and anger to those who live in selfish ambition and do not obey the truth but follow unrighteousness. 9 There will be affliction and distress on everyone who does evil, on the Jew first and also the Greek, 10 but glory and honor and peace for everyone who does good, for the Jew first and also the Greek.
Notes and References
"... Both the Hebrew Scriptures and Second Temple literature are replete with the concept that an eschatological judgment will take place during which everyone will be judged on the basis of their works. For instance, the phrase occurs in Psalm 61:13; Proverbs 24:12; Job 34:11 (LXX). Lamentations expresses the biblical concept of divine retribution in similar fashion through a plea for God’s curse upon his enemies: (Pay them back what they deserve, Lord, for what their hands have done; Lamentations 3:64). The concept of judgment according to works is expressed in the OT Apocrypha and Pseudepigrapha as well. For example, the author of Psalms of Solomon 9:5 declares, “The one who does righteousness stores up life for himself with the Lord, but the one who does unrighteousness causes his life to be destroyed, for the righteous judgments of the Lord are according to the individual and the household.” In the eschatological vein of Judaism, the apostle Paul refers to an eschatological judgment, enumerating the rewards given to those who faithfully practice good works in this life and the dire consequences of practicing evil ..."
Sheldon, Martin E. A Theology of Good Works: The Apostle Paul's Concept of Good Works within the Context of Second Temple Judaism (pp. 19-20) Liberty University, 2015