Answer:
Praise be to Allah, the Lord of the Worlds; and blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
Evidence in the Sharia prove that whenever a Muslim is afflicted by some adversity in this life regardless of its quality or quantity, Allah reduces some of his sins and raises his grade in the Hereafter life provided that person is satisfied with what happens to him..
Allah Says (interpretation of meaning): {but give glad tidings to As-Sâbirin (the patient ones, etc.). Who, when afflicted with calamity, say: "Truly! To Allâh we belong and truly, to Him we shall return." They are those on whom are the Salawât (i.e. blessings, etc.) (i.e. who are blessed and will be forgiven) from their Lord, and (they are those who) receive His Mercy, and it is they who are the guided-ones.}[2:155-157].
Imams Bukhari and Muslim narrated on the authority of Abu Hurairah and Abu Sayeed they said that the Prophet said: "No Muslim is afflicted with any hurt, even if it is no more than the pricking of a thorn, but Allah wipes off his sins because of it and his sins fall away from him as leaves fall from a tree".
In another Hadith the Prophet said: "No fatigue, nor disease, nor sorrow, nor sadness, nor hurt, nor distress befalls a Muslim, even if it were the prick he receives from a thorn, but that Allah expiates some of his sins for that".
The above evidences and many other not mentioned here emphasise the fact that all kinds of adversities befalling Muslims wipe out some of their sins, no matter these adversities are in health, wealth, body, children etc. Surely they expiate their minor sins. So, this rule applies also to the situations mentioned by the questioner.
At the same time we would like to draw your attention to the fact that everyone who causes some harm intentionally to someone else surely he is responsible for that harm and consequently bears the sin of harming others.
The unjustice, oppression and other ill practices observed in the Muslim countries are nothing but the immediate punishments of Allah inflicted on them for neglecting to apply justice amongst themselves and as mentioned earlier punishments are expiations of sins just as the Hadd punishments are; i.e., if a Hadd is applied upon a person it will wipe out his sin which caused him to be punished.
Allah knows best.