When a parent who sees his or her child taking the wrong path, whether it be a temper tantrum, or a child experimenting with drugs or alcohol, the parent will obviously attempt to stop this behavior. Some may call this punishment, and others may call it guidance. No matter what it is called, it appears justified to save the child from future peril.
In our religion, we are told that God sometimes gives us guidance in the form of transient illness to help us remove evil thoughts (greed, arrogance, anger, and self love) from our minds. We believe that these evil thoughts placed into action are what cause suffering back to us. For those who believe in reincarnation, these sufferings may appear in future lives; and for those who believe in the afterlife, suffering will occur in hell. Will it not be justified if God could save us from these perils that he sees surrounding our souls/heart. This is why God gives us guidance in the form of illness or sufferings to prevent future sufferings; a little discomfort to prevent future sufferings. Please ponder any sufferings. It may be God guiding you to remove evil thoughts from your minds.