Godly sorrow leads a person to repentance. In David`s case, he could only look forward to deliverance because Christ Jesus had not yet come.