Hebrews 12:7-8

12:7 Endure your suffering as discipline; God is treating you as sons. For what son is there that a father does not discipline? 12:8 But if you do not experience discipline, something all sons have shared in, then you are illegitimate and are not sons.