2 Corinthians 7:9-10

As it is, I rejoice, not because you were grieved, but a because you were grieved into repenting. For you felt a godly grief, so that you suffered no loss through us.

10 For b godly grief produces a repentance that leads to salvation without regret, whereas c worldly grief produces death.
Copyright information for ESV