Hebrews 12:10

NIV
New International Version

10They disciplined us for a little while as they thought best; but God disciplines us for our good, in order that we may share in his holiness.