David desired to be in right standing with the Lord., but he recognized that that was not possible because of sin.

Today, all sin for all time has been forgiven, so there is no reason to carry guilt. It aught to be immediately lifted in the knowledge of the perfect finished work of Christ Jesus.