2 Corinthians 7:10

10 Godly sorrow brings repentance that leads to salvation and leaves no regret, but worldly sorrow brings death.

Read 2 Corinthians 7:10 Using Other Translations

For godly sorrow worketh repentance to salvation not to be repented of: but the sorrow of the world worketh death.
For godly grief produces a repentance that leads to salvation without regret, whereas worldly grief produces death.
For the kind of sorrow God wants us to experience leads us away from sin and results in salvation. There’s no regret for that kind of sorrow. But worldly sorrow, which lacks repentance, results in spiritual death.