David begins by asking God to incline his ear and answer him, for he is poor and needy. He asks him to preserve his life, for he is godly, and to save his servant who trusts in him. He asks for grace, for to him he cries all the day, and for gladness for his soul, for to him he lifts up his soul. In verse 5, the reason for it all: for you, O Lord, are good and forgiving, abounding in steadfast love to all who call upon you.
Verses 6 to 10 deepen the trust. He asks that God hear his prayer and attend to the voice of his pleas. In the day of his trouble he will call, for God will answer him. There is none like him among the gods, nor are there any works like his. All the nations he has made shall come and worship before him and glorify his name, for he is great and does wondrous things. He alone is God.
Verses 11 to 13 ask for a faithful heart. Teach me your way, O Lord, that I may walk in your truth; unite my heart to fear your name. I give thanks to you with my whole heart and will glorify your name forever, for great is your steadfast love toward me and you have delivered my soul from the depths of Sheol.
Verses 14 to 17 describe the threat. O God, insolent men have risen up against me; a band of ruthless men seek my life. But you, O Lord, are a God merciful and gracious, slow to anger and abounding in steadfast love and faithfulness. Turn to me and be gracious, give your strength to your servant and save the son of your maidservant. Show me a sign of your favor, that those who hate me may see and be put to shame, because you, Lord, have helped me and comforted me.