“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.” (2 Corinthians 7:9 NLT).

PAIN PRECEDES REPENTANCE
Paul’s first letter to the Corinthians was the most corrective of all his epistles. He was sorrowful to send it, knowing the pain it would cause. However, when he heard from Titus how the Corinthians had repented and changed their ways, he was overjoyed. He observed a spiritual truth: Pain precedes repentance.
 
Worldly sorrow comes from having been caught. It does not result in repentance, which is both a change of mind and of conduct. But godly sorrow results in true repentance, so that both mind and conduct are changed.
 
Paul didn’t want to hurt the Corinthians, but he loved them enough to correct them, causing them a little pain, but with great result. His correction was aimed at their repentance. And he was overjoyed to see their godly response.