Back into our Psalms, and just to set the stage, David is being unjustly accused by his enemies and goes to God, the ultimate just Judge for reprieve, David’s not getting any fairness with the government then at the time, so he is making his appeal to the Highest Power, God:
Psa 7:6 Arise, O LORD, in anger! Stand up against the fury of my enemies! Wake up, my God, and bring justice!
Psa 7:7 Gather the nations before you. Rule over them from on high.
Psa 7:8 The LORD judges the nations. Declare me righteous, O LORD, for I am innocent, O Most High!
Giving attention that last verse, David knows that he did nothing wrong, he stands out righteous amongst the wicked and he confidently goes to God whom reigns over the nations and their rulers. Even heads of state, no matter how high fallutin’ they (and we) might think they are, God is the supreme Judge and it is God who will have the final say.
A great reality check here for us, the courts here on earth may deliver unjust verdicts, but God who is perfect and whose laws are perfect, will also render perfect judgments, so we need to not put our trust in man, who is imperfect, but rather put our trust in God, who is perfect.