The psalm revolves around the word of God, which almost every verse mentions with one of eight terms: law, testimonies, ways, precepts, statutes, commandments, rules and promise. It begins with a blessing for those who walk in the law of the Lord (Aleph, vv. 1-8) and asks how a young man can keep his way pure, by guarding the word and storing it in the heart (Beth, vv. 9-16). It asks God to open his eyes to behold wondrous things from his law, for he is a sojourner on the earth (Gimel, vv. 17-24).
Throughout the poem the psalmist is persecuted and afflicted. His soul clings to the dust and he asks to be revived by the word (Daleth, vv. 25-32), asks for teaching and that his eyes turn from worthless things (He, vv. 33-40) and declares that the Lord is his portion (Heth, vv. 57-64). He acknowledges that it was good for him to be afflicted so that he might learn God's statutes (Teth, v. 71), and that the law is worth more than thousands of gold and silver pieces (Teth, v. 72). He loves the law and finds it sweeter than honey (Mem, vv. 97-104), and the word is a lamp to his feet and a light to his path (Nun, v. 105). He hates the double-minded (Samekh, vv. 113-120), weeps streams of tears because others do not keep the law (Pe, v. 136), and declares that the unfolding of God's words gives light and understanding to the simple (Pe, v. 130).
The last part speaks of crying out and peace. He cries out with his whole heart (Qoph, vv. 145-152), asks the Lord to see his affliction (Resh, vv. 153-160), praises the Lord seven times a day and those who love his law have great peace (Shin, vv. 161-168). It ends with a plea that his cry come before the Lord and that his lips pour forth praise, and with the final confession: I have gone astray like a lost sheep; seek your servant, for I have not forgotten your commandments (Taw, vv. 169-176).