Sad 38:24
قَالَ لَقَدْ ظَلَمَكَ بِسُؤَالِ نَعْجَتِكَ إِلَىٰ نِعَاجِهِۦ ۖ وَإِنَّ كَثِيرًا مِّنَ ٱلْخُلَطَآءِ لَيَبْغِى بَعْضُهُمْ عَلَىٰ بَعْضٍ إِلَّا ٱلَّذِينَ ءَامَنُوا۟ وَعَمِلُوا۟ ٱلصَّـٰلِحَـٰتِ وَقَلِيلٌ مَّا هُمْ ۗ وَظَنَّ دَاوُۥدُ أَنَّمَا فَتَنَّـٰهُ فَٱسْتَغْفَرَ رَبَّهُۥ وَخَرَّ رَاكِعًا وَأَنَابَ ۩
Qala laqad thalamakabisu-ali naAAjatika ila niAAajihi wa-innakatheeran mina alkhulata-i layabghee baAAduhum AAalabaAAdin illa allatheena amanoowaAAamiloo assalihati waqaleelun mahum wathanna dawoodu annama fatannahufastaghfara rabbahu wakharra rakiAAan waanab
[David] said, "He has certainly wronged you in demanding your ewe [in addition] to his ewes. And indeed, many associates oppress one another, except for those who believe and do righteous deeds - and few are they." And David became certain that We had tried him, and he asked forgiveness of his Lord and fell down bowing [in prostration] and turned in repentance [to Allāh].
He (Dawūd) said, “He has certainly wronged you by demanding your ewe to be added to his ewe. Many partners oppress one another, except those who believe and do righteous deeds, and very few they are.” And Dawūd realized that We had put him to a test, so he prayed to his Lord for forgiveness, and bowing down, he fell in prostration, and turned (to Allah).