Psalms 9:4 Because you have upheld my just cause; you are seated on your throne as a judge with integrity.
The psalmist didn’t claim to have the power to protect himself. He claimed a God who sat in judgment of his situation, who vindicated him in that judgment. So he can now praise God for delivering him.
If you need rescue, pray for it until the Lord has given you the assurance that he has decided in your favor.