In Psalm 25, David is suffering as a result of his sin with Bathsheba. So, he seeks God in prayer in the context of the guilt and danger that situation would have brought to his life. But here in Psalm 26 the situation is different. It’s very likely that this psalm was written as David was being hunted by King Saul. It’s not Davids sin that has caused his suffering. So, Psalm 26 is a model of Praying when You’re Suffering, but not for Sin. When you need God’s help in times of suffering, and you can confidently assert that the reason for that suffering is not your own personal sin. There are times when we are experiencing a great deal of trouble in this life. Prayer life that defeats sin and enemies is putting it in the Lords hands and leaving it there. Then wait on the Lord.
It reads in Psalm 26:1-12,
“Psalm Of David.”
Vindicate me, Lord, for I have led a blameless life; I have trusted in the Lord and have not faltered. Test me, Lord, and try me, examine my heart and my mind; for I have always been mindful of your unfailing love and have lived in reliance on your faithfulness. I do not sit with the deceitful, nor do I associate with hypocrites. I abhor the assembly of evildoers and refuse to sit with the wicked. I wash my hands in innocence, and go about your altar, Lord, proclaiming aloud your praise and telling of all your wonderful deeds. Lord, I love the house where you live, the place where your glory dwells. Do not take away my soul along with sinners, my life with those who are bloodthirsty, in whose hands are wicked schemes, whose right hands are full of bribes. I lead a blameless life; deliver me and be merciful to me. My feet stand on level ground; in the great congregation I will praise the Lord.