Hebrews 12:10

Moffatt(i) 10 For while their discipline was only for a time, and inflicted at their pleasure, he disciplines us for our good, that we may share in his own holiness.