2 Corinthians 7:9lupeō
I now rejoice, not that you were made sorrowful, but that you were made sorrowful to {the point of} repentance; for you were made sorrowful according to {the will of} God, so that you might not suffer loss in anything through us.
Sorrow according to God's will leads to repentance.