Psalm 62:12
10 Do not trust in what you can gain by oppression. Do not put false confidence in what you can gain by robbery. If wealth increases, do not become attached to it. 11 God has declared one principle; two principles I have heard: God is strong, 12 and you, O Lord, demonstrate loyal love. For you repay men for what they do.
Matthew 16:27
25 For whoever wants to save his life will lose it, but whoever loses his life because of me will find it. 26 For what does it benefit a person if he gains the whole world but forfeits his life? Or what can a person give in exchange for his life? 27 For the Son of Man will come with his angels in the glory of his Father, and then he will reward each person according to what he has done. 28 I tell you the truth, there are some standing here who will not experience death before they see the Son of Man coming in his kingdom.”
Notes and References
"... Two New Testament allusions to Proverbs reflect a general biblical literacy more than any specific manner of interpreting the text. When both Jesus in Matthew 16:27 and Paul in Romans 2:6 apparently cite part of Proverbs 24:12 (“Will not [God] repay a man according to his work?”), it is doubtful that either was reflecting on the context of these words in Proverbs. Rather, the language of Proverbs has influenced the rhetoric of Jesus and Paul. That is, both speak in the idiom of the Old Testament. We should note that similar language also appears in Psalm 62:12 ..."
Longman, Tremper, and Peter Enns Dictionary of the Old Testament: Wisdom, Poetry & Writings (p. 569) Inter-Varsity Press, 2008