Adam Clarke's Bible Commentary Verse 3. If I have done this ] David was accused by Saul of affecting the kingdom; and of waiting for an opportunity to take away the life of his king, his patron, and his friend. In his application to God he refers to these charges; meets them with indignation; and clears himself of them by a strong appeal to his Judge; and an imprecation that, if he had meditated or designed any such thing, he might meet with nothing but curse and calamity either from God or man.
Matthew Henry Commentary
Verses 1-9 - David flees to God for succour. But Christ alone could call on Heave to attest his uprightness in all things. All His works were wrought in righteousness; and the prince of this world found nothing whereo justly to accuse him. Yet for our sakes, submitting to be charged a guilty, he suffered all evils, but, being innocent, he triumphed ove them all. The plea is, "For the righteous God trieth the hearts and the reins." He knows the secret wickedness of the wicked, and how to brin it to an end; he is witness to the secret sincerity of the just, an has ways of establishing it. When a man has made peace with God abou all his sins, upon the terms of grace and mercy, through the sacrific of the Mediator, he may, in comparison with his enemies, appeal to God's justice to decide.
Original Hebrew יהוה3068 אלהי430 אם518 עשׂיתי6213 זאת2063 אם518 ישׁ3426 עול5766 בכפי׃3709