Divine Scourge doesn't differentiate  between a righteous person and a wrongdoer if we understand this!

Qur'an: Surah 8, Ayah 25
"And fear a trial which will not strike those who have wronged among you exclusively, and know that Allah is severe in penalty"