David opens with a plea: vindicate me, O Lord, for I have walked in my integrity and I have trusted in the Lord without wavering. He invites God to examine him, test him and try his heart and his mind, for God's steadfast love is before his eyes and he has walked in his faithfulness.
He declares that he does not sit with men of falsehood or go in with hypocrites. He hates the assembly of evildoers and will not sit with the wicked. He washes his hands in innocence and goes around the altar of the Lord to proclaim with the voice of thanksgiving all his wondrous deeds. He loves the habitation of God's house and the place where his glory dwells.
He asks God not to sweep his soul away with sinners or his life with bloodthirsty men, in whose hands is evil and whose right hands are full of bribes. David will walk in his integrity and asks to be redeemed and shown mercy. His foot stands on level ground, and in the great assembly he will bless the Lord.