Hebrews 12:5-11

5 And you have forgotten the exhortation which speaks to you as to children, My son, despise not you the chastening of the Lord, nor faint when you are rebuked of him:

6 For whom the Lord loves he chastens, and whips every son whom he receives.

7 If you endure chastening, God deals with you as with sons; for what son is he whom the father chastens not?

8 But if you be without chastisement, whereof all are partakers, then are you bastards, and not sons.

9 Furthermore we have had fathers of our flesh which corrected us, and we gave them reverence: shall we not much rather be in subjection to the Father of spirits, and live?

10 For they truly for a few days chastened us after their own pleasure; but he for our profit, that we might be partakers of his holiness.

11 Now no chastening for the present seems to be joyous, but grievous: nevertheless afterward it yields the peaceable fruit of righteousness to them which are exercised thereby.