Hebrews 12:6

ESV
For the Lord disciplines the one he loves, and chastises every son whom he receives.”