"Do not despise the Lord's discipline and do not resent his rebuke." Proverbs 3:11
Our natural reaction to rebuke, even anyone, even God, is to get offended. Don't confuse God's rebuke with His disapproval. Understand that His corrections are to edify and never to condemn. Worldly pain for eternal blessing is a deal! Always cooperate with His discipline and thank Him for its promise.