After David is confronted by Nathan the prophet, he writes Psalm 51. It is a picture of the Lord's forgiveness to us.