Deuteronomy 8:5-6 KJV
“Thou shalt also consider in thine heart, that, as a man chasteneth his son, so the Lord thy God chasteneth thee.  Therefore thou shalt keep the commandments of the Lord thy God, to walk in His ways, and to fear Him.”
A child wouldn’t understand why his parents discipline him when he does something wrong. The discipline is especially harsh for him after he has been warned not to disobey a certain order. When he is spanked or put on time-out, all he knows to do is cry or sulk or throw a temper tantrum, or all of these at once. Life is very unfair, he feels then, and he thinks that he should not be punished at all.
He would even think that being punished in any form means that his parents don’t love him as much anymore.
Loving and caring patents know that that is the farthest thing from the truth. Parents rebuke and discipline because they care and love their children. They don’t want their kids to do anything which will harm them. Because they are caring parents, they need their kids to be aware of the dangers. They don’t want their kids to disobey without accountability. These parents especially do not want their kids to get used to or even like disobeying so much that their moral as well as spiritual boundaries become no more, become unreliable in protecting them.
So it is with the Heavenly Father. He rebukes and disciplines us, His children, because we are His and He wants to protect us. As much as we protest as times that we have free will, even so sometimes we make the wrong decisions based on our own needs and desires; or, not fully informed or understanding the ramifications of our decisions. the Father knows what will happen if we are fully ignorant or rebellious in our ways. our wrong decisions and rebellion will harm only ourselves. depending on the type of ‘Christians’ that we are, we then blame Him for our own decisions or we fall into hopelessness and depression.
But He has always warned us of the dangers of following our own ways. Many times, He ‘chasteneth’ us when we insist on doing things our own way. But better that He rebukes and punishes us when we err, before we fall into danger, than that He ignores us but then we experience intense situations based on our own stubborn, selfish decisions.
So, today, live according to His Word. Also today, when we have rebelled and then we go through a period of ‘chastening’ then let us heed Him and endeavor to live furthermore according to His commandments.
It’s all for our own good, really.