Psalm 51:1b-2
according to your abundant mercy, blot out my transgressions. Wash me thoroughly from my iniquity, and cleanse me from my sin!
David is aware of his sin. Just like David, I have transgressed, I have rebelled against God and deliberately gone my own way. I also find myself in iniquity, twisted in on myself, my selfish heart affecting everything in my life. I have sinned, I have failed to live up to Gods' perfect standard. The good news of the gospel starts with recognising our sin.
David knows the solution is not within himself. Aware of our sin, we could just accept it, either revelling in it or wallowing in it but not expecting or even wanting change. David knows that something needs to be done about it. but he recognises that it is not something he can do himself. We can't sort ourselves out. We can't turn around the rebellion, untwist ourselves and start being holy. We need intervention. the good news of the gospel is that God has intervened.
David asks God to blot out his sins, to wash him thoroughly, to cleanse him. Nothing else can cleanse us, can wash us. We can't blot out our own transgressions, no matter how much we try. The good news of the gospel is that God can, and will, do that. On the cross, our transgressions were blotted out, our iniquity was washed away and we were cleansed. In verse 1, David cries out to God for mercy. How does God show mercy? By dealing with our sin.