Hebrews 12:11

11 Punishment never makes us happy at the time when we receive it. No, the pain makes us sad. But later we know that the punishment has taught us good things. It helps us to live in a right way that gives us peace in our minds.