O David, indeed We have made you a successor in the earth and made you a king therein, so judge between people with truth and equity, and do not follow whim in judgments, for it will misguide you from the religion of Allah and His law. Indeed, those who stray from the path of Allah will have a painful punishment in the Fire because of their heedlessness regarding the Day of Recompense and Reckoning. And in this is a recommendation for those in authority to judge by the truth sent down from Allah, Blessed and Exalted be He, and not deviate from it, lest they stray from His path.