Surah Sad, ayah 26

38:26

يَٰدَاوُۥدُ إِنَّا جَعَلۡنَٰكَ خَلِيفَةٗ فِي ٱلۡأَرۡضِ فَٱحۡكُم بَيۡنَ ٱلنَّاسِ بِٱلۡحَقِّ وَلَا تَتَّبِعِ ٱلۡهَوَىٰ فَيُضِلَّكَ عَن سَبِيلِ ٱللَّهِۚ إِنَّ ٱلَّذِينَ يَضِلُّونَ عَن سَبِيلِ ٱللَّهِ لَهُمۡ عَذَابٞ شَدِيدُۢ بِمَا نَسُواْ يَوۡمَ ٱلۡحِسَابِ ٢٦

Yādāwūdu innā ja'alnāka khalīfatan fil-ardi fahkum baynan-nāsi bil-haqqi walā tattabi'il-hawā fayudillaka 'an sabīlillāhi innal-ladhīna yadillūna 'an sabīlillāhi lahum 'adhābun shadīdu bimā nasū yawmal-hisāb

[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.