Psalm 51:17 ESV

The sacrifices of God are a broken spirit; a broken and contrite heart, O God, you will not despise.

David confesses that the Lord deems hurt and penitential heart more precious than formal offerings. When David confessed his sin and humbled himself to lowest point, he experienced the gospel of restoration and forgiveness.