2 Corinthians 7:8-9 CSB

8 For although I grieved you with my letter, I do not regret it-even though I did regret it since I saw that the letter grieved you, though only for a little while.
9 Now I am rejoicing, not because you were grieved, but because your grief led to repentance. For you were grieved as God willed, so that you didn't experience any loss from us.