Hebrews 12:5-8 New King James Version (NKJV)
5 And you have forgotten the exhortation which speaks to you as to sons:
“My son, do not despise the [a]chastening of the Lord,
7 If[b] you endure chastening, God deals with you as with sons; for what son is there whom a father does not chasten? 8 But if you are without chastening, of which all have become partakers, then you are illegitimate and not sons.