This Is My Faith - Al-fatlawi, Ali - الصفحة ٩٨ - Are Misfortunes Punishment?
punishment has a positive effect due to the correlation between the criminal and the punishment. We can illustrate this in two ways:
First, the criminal and lawful acts create a special ability in person as a result of repeating those acts so much that this ability or aptitude becomes part of their existence. Both virtuous and vicious people are raised from the dead with these aptitudes that are again born due to constantly doing good and bad deeds. In other words, it is these aptitudes or special abilities that make heaven and hell.
Second, there are apparently two sides to human deeds, a worldly side and an otherworldly side, and so human deeds take different forms depending on each different situation. For example, prayers have a specific form in this world, i.e. there are certain moves and steps and certain words to praise the Lord, but they have a different in the next world. This is supported by the words of God:
(And let not those who hoard up that which Allah hath bestowed upon them of His bounty think that it is better for them. Nay, it is worse for them. That which