In The Name of Allaah, The Most Merciful, The Bestower of Mercy.
Allaah [The Exalted] stated that Shu’aib [alayhis salaam] supplicated saying:
رَبَّنَا ٱفۡتَحۡ بَيۡنَنَا وَبَيۡنَ قَوۡمِنَا بِٱلۡحَقِّ وَأَنتَ خَيۡرُ ٱلۡفَـٰتِحِينَ
Our Lord! Judge between us and our people in truth, for You are the Best of those who give judgment. [Surah Al-A’raaf. Aayah 89]
Meaning: “Judge between us because Your Judgement contains no wrong, inequity and oppression. Aid the truth and its people, and humiliate falsehood and its people. You are the best of those who judge”. Indeed, Allaah accepted Shu’aib’s [alayhis salaam] supplication, aided him and the believers and destroyed the unbelievers. Allaah [The Exalted] said: [وَلَمَّا جَآءَ أَمۡرُنَا نَجَّيۡنَا شُعَيۡبً۬ا وَٱلَّذِينَ ءَامَنُواْ مَعَهُ ۥ بِرَحۡمَةٍ۬ مِّنَّا وَأَخَذَتِ ٱلَّذِينَ ظَلَمُواْ ٱلصَّيۡحَةُ فَأَصۡبَحُواْ فِى دِيَـٰرِهِمۡ جَـٰثِمِينَ – And when Our Commandment came, We saved Shu’aib and those who believed with him by a Mercy from Us. And As-Saihah (torment – awful cry, etc.) seized the wrong-doers, and they lay (dead) prostrate in their homes]. [Surah Hud. Aayah 94]
An Excerpt from Fiqhul Ad’iyah Wal Ad’kaar vol 4. Pages 384-385