My son, do not despise the chastening of the Lord, Nor detest His correction; For whom the Lord loves He corrects, Just as a father the son in whom he delights.
Read all of Proverbs 3 NKJV
Read Proverbs 3:11-12 in another translation