When read in Hebrew, this psalm is an acrostic – each verse begins with a successive letter of the alphabet. That would have made it easier to memorize.
As my Life Application Bible points out, nearly have the Psalms mention enemies (72 out of 150). Satan is our ultimate enemy and wants to see us stay away from God or turn from him.
David mentions asks for mercy and forgiveness several times, trusting that it is in God’s nature to grant them.
1 To you, O Lord, I lift up my soul;
2 in you I trust, O my God.
Do not let me be put to shame, nor let my enemies triumph over me.
3 No one whose hope is in you will ever be put to shame,
but they will be put to shame who are treacherous without excuse.
4 Show me your ways, O Lord, teach me your paths;
5 guide me in your truth and teach me, for you are God my Savior,
and my hope is in you all day long.
6 Remember, O Lord, your great mercy and love, for they are from of old.
7 Remember not the sins of my youth and my rebellious ways;
according to your love remember me, for you are good, O Lord.
8 Good and upright is the Lord; therefore he instructs sinners in his ways.
9 He guides the humble in what is right and teaches them his way.
10 All the ways of the Lord are loving and faithful for those who keep the demands of his covenant.
11 For the sake of your name, O Lord, forgive my iniquity, though it is great.
12 Who, then, is the man that fears the Lord? He will instruct him in the way chosen for him.
13 He will spend his days in prosperity, and his descendants will inherit the land.
14 The Lord confides in those who fear him; he makes his covenant known to them.
This reminds me of where Jesus says, “But seek first his kingdom and his righteousness, and all these things will be given to you as well” and “Ask and it will be given to you; seek and you will find; knock and the door will be opened to you.” (Matthew 6:33 and 7:7. People who really seek the one true God will find him.
15 My eyes are ever on the Lord, for only he will release my feet from the snare.
16 Turn to me and be gracious to me, for I am lonely and afflicted.
17 The troubles of my heart have multiplied; free me from my anguish.
18 Look upon my affliction and my distress and take away all my sins.
19 See how my enemies have increased and how fiercely they hate me!
20 Guard my life and rescue me; let me not be put to shame, for I take refuge in you.
21 May integrity and uprightness protect me, because my hope is in you.
22 Redeem Israel, O God, from all their troubles!
The Holy Bible : New International Version. 1996, c1984. Grand Rapids: Zondervan.