Hebreus 12

10 For they truly gave us punishment for a short time, as it seemed good to them; but he does it for our profit, so that we may become holy as he is.

11 At the time all punishment seems to be pain and not joy: but after, those who have been trained by it get from it the peace-giving fruit of righteousness.