Hebrews 12:10-11

BLB(i) 10 For truly they were disciplining us for a few days, according to that seeming good to them; but He for our benefitting, in order to share His holiness. 11 And all discipline indeed for those being present, does not seem to be of joy, but of grief; but afterward it yields the peaceable fruit of righteousness to those having been trained by it.