According to Prophet Jeremiah speaking as the mouthpiece of God, we are informed about one of the attributes of God. That God tests, evaluates and judges us, His creation.
Jeremiah 17 verse 10
“I, the Lord, search and examine the mind,
I test the heart,
To give to each man according to his ways,
According to the results of his deeds.
On the other hand, the psalmist must have been very bold, or the spirit of the psalmist is,
and under the influence of the Holy spirit and enabled by the Holy Spirit, invites God to be God and demonstrate one of His attributes, the judging attribute, in Psalm 26 verse 2: Examine me, O Lord, and try me;
Test my heart and my mind.
Whether we invite Him or not, on the day of judgement or on the day of the Lord, the evaluation is going to take place. And then, according to Prophet Isaiah in chapter 40 verse 10: Listen carefully, the Lord God will come with might,
And His arm will rule for Him.
Most certainly His reward is with Him,
And His recompense (restitution) accompanies Him.
