يَـٰدَاوُۥدُ إِنَّا جَعَلْنَـٰكَ خَلِيفَةً فِى ٱلْأَرْضِ فَٱحْكُم بَيْنَ ٱلنَّاسِ بِٱلْحَقِّ وَلَا تَتَّبِعِ ٱلْهَوَىٰ فَيُضِلَّكَ عَن سَبِيلِ ٱللَّهِ ۚ إِنَّ ٱلَّذِينَ يَضِلُّونَ عَن سَبِيلِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌۢ بِمَا نَسُوا۟ يَوْمَ ٱلْحِسَابِ
yādāwūdu innā jaʿalnāka khalīfatan fī l-arḍi fa-uḥ'kum bayna l-nāsi bil-ḥaqi walā tattabiʿi l-hawā fayuḍillaka ʿan sabīli l-lahi inna alladhīna yaḍillūna ʿan sabīli l-lahi lahum ʿadhābun shadīdun bimā nasū yawma l-ḥisābi
[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.
— Saheeh International
‘David, We have given you mastery over the land. Judge fairly between people. Do not follow your desires, lest they divert you from God’s path: those who wander from His path will have a painful torment because they ignore the Day of Reckoning.’
— M. A. S. Abdel Haleem
O Dâwûd (David)! Verily! We have placed you as a successor on the earth; so judge you between men in truth (and justice) and follow not your desire - for it will mislead you from the Path of Allâh. Verily, those who wander astray from the Path of Allâh (shall) have a severe torment, because they forgot the Day of Reckoning.
— Muhammad Muhsin Khan & Muhammad Taqi-ud-Din al-Hilali

