This Is My Faith - Al-fatlawi, Ali - الصفحة ٩١ - Interpretation of Evils and Tribulations
Name, is far above bad or evil acts; He is also Wise and far above ill-treatment. This is proved through reason and reported evidence. Thus, all that comes from the Glorious Allah is the very exact wisdom, the very exact good act and the very exact mercy, and consequently all forms of disasters and misfortunes are based on wisdom and for the good of mankind, but the point here is that we cannot know the wisdom and the benefit behind it.
So, our lack of knowledge should not affect the way we explain disasters or catastrophes as injustice; this is not fair at all. I’ll give you an example to make this point clear. Let’s say if we see a bulldozer destroying a beautiful house or garden, we’d think it is an evil deed. But after some inquiries if we find out that they will be building a hospital, then we’ll be happy and not only change our mind but we’ll also thank them for that matter. Again, if we could ask God to stop what we think it is an evil thing happening to us, the answer then would be like ‘in order to for you to get this certain benefit or to stop that certain damage from happening to you. This sets our minds at rest and we thank the Lord for taking such good care of us.