2 Corinthians 7:8-11
I am not sorry that I sent that severe letter to you, though I was sorry at first, for I know it was painful to you for a little while. Now I am glad I sent it, not because it hurt you, but because the pain caused you to repent and change your ways. It was the kind of sorrow God wants his people to have, so you were not harmed by us in any way. 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.
Just see what this godly sorrow produced in you! Such earnestness, such concern to clear yourselves, such indignation, such alarm, such longing to see me, such zeal and such a readiness to punish wrong. You showed that you have done everything necessary to make things right.