Matthew Henry's Complete Bible Commentary
Psalms 28
The former part of this psalm is the prayer of a saint militan and now in distress (Psalms 28:1-28:3), to which is added the doom of God’s implacable enemies, Psalms 28:4, 28:5. The latter part of the psalm is the thanksgiving of a saint triumphant, and delivered out of his distresses (Psalms 28:6-28:8), to which is added a prophetical prayer for all God’s faithful loyal subjects, Psalms 28:9. So that it is hard to say which of these two conditions David was in when he penned it. Some think he was now in trouble seeking God, but at the same time preparing to praise him for his deliverance, and by faith giving him thanks for it, before it was wrought. Others think he was now in triumph, but remembered, and recorded for his own and others’ benefit, the prayers he made when he was in affliction, that the mercy might relish the better, when it appeared to be an answer to them. MHBCC 507.1