In Old and New Testaments, we see that God is righteous, with a righteousness so pure, and holy, and grand that he is himself the very definition of all goodness and justice. This is God.
Ever since Adam sinned in the garden, and so in Adam all mankind fell into sin, the immeasurable weight of God’s righteousness has been a crushing weight of judgment. All men everywhere are guilty and under the wrath of God.
Though all men deserve hell, by grace alone, God has provided for all his people the way of salvation through the death and resurrection of Jesus Christ, the Son of God and Eternal King. He forgives, cleanses, and makes new all those who confess their sin, turn away from it, and trust Christ alone to save. Through the work of Jesus, the righteously angry God righteously saves his people.
This enables his people, all who are saved by grace alone, through faith alone, in Christ alone, to live lives of joy and gladness, singing God’s praises, telling of his greatness, and doing obedient good works that please God.
David’s Sin, verses 3-6
David’s Plea, verses 1-2, 7-12
David’s Response, verses 13-19
New Testament passage for further study: Romans 1-6