Hebrews 12:11

NIV
New International Version

11No discipline seems pleasant at the time, but painful. Later on, however, it produces a harvest of righteousness and peace for those who have been trained by it.