A warning given to a prophet acting as judge
Addressed to Dāwūd ﷺ directly.
يَـٰدَاوُۥدُ إِنَّا جَعَلْنَـٰكَ خَلِيفَةً فِى ٱلْأَرْضِ فَٱحْكُم بَيْنَ ٱلنَّاسِ بِٱلْحَقِّ وَلَا تَتَّبِعِ ٱلْهَوَىٰ فَيُضِلَّكَ عَن سَبِيلِ ٱللَّهِ ۚ إِنَّ ٱلَّذِينَ يَضِلُّونَ عَن سَبِيلِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌۢ بِمَا نَسُوا۟ يَوْمَ ٱلْحِسَابِ
…fa-ḥkum bayna-n-nāsi bi-l-ḥaqqi wa lā tattabiʿi-l-hawā fa-yuḍillaka ʿan sabīli-llāh…
“[We said], "O David, indeed We have made you a successor upon the earth, so judge between the people in truth and do not follow [your own] desire, as it will lead you astray from the way of Allāh." Indeed, those who go astray from the way of Allāh will have a severe punishment for having forgotten the Day of Account.”
Source
The Qur'an · 38:26
Qur'an
- Qur'anic text in the Uthmani script via Quran.com; translation: Saheeh International