Hebrews 12:6-7; Hebrews 12:10

6 For whom the Lord loveth he chasteneth , and scourgeth every son whom he receiveth . 7 If ye endure chastening, God dealeth with you as with sons; for what son is he whom the father chasteneth not?
10 For they verily for a few days chastened us after their own pleasure ; but he for our profit , that we might be partakers of his holiness.