In Psalm 38 the righteous sufferer calls on and hopes in the Lord to deliver him. Note that this Psalmist is righteous not because he is sinless but because he confesses his sin and repents of it. The one in whom the Psalm finds typological fulfillment bears the sins of his people but has none of his own (cf. Isa 53:3, 7).
Psalm 38
1–2, Do Not Discipline
3–7, No Soundness Because of Sin
8–10, Groaning to the Lord
11–12, Abandoned and Opposed
13–14, Not Responding
15–16, Trusting in the Lord
17–20, Weakened by Sin
21–21, Do Not Forsake