Surah Sad, ayah 24

38:24

قَالَ لَقَدۡ ظَلَمَكَ بِسُؤَالِ نَعۡجَتِكَ إِلَىٰ نِعَاجِهِۦۖ وَإِنَّ كَثِيرٗا مِّنَ ٱلۡخُلَطَآءِ لَيَبۡغِي بَعۡضُهُمۡ عَلَىٰ بَعۡضٍ إِلَّا ٱلَّذِينَ ءَامَنُواْ وَعَمِلُواْ ٱلصَّٰلِحَٰتِ وَقَلِيلٞ مَّا هُمۡۗ وَظَنَّ دَاوُۥدُ أَنَّمَا فَتَنَّٰهُ فَٱسۡتَغۡفَرَ رَبَّهُۥ وَخَرَّۤ رَاكِعٗاۤ وَأَنَابَ۩ ٢٤

Qāla laqad zalamaka bisu'āli na'jatika ilā ni'ājihī wa inna kathīram minal-khulatā'i layabghī ba'duhum 'alā ba'din illal-ladhīna āmanū wa'amilus-sālihāti waqalīlum mā hum wazanna dāwūdu annamā fatannāhu fastaghfara rabbahū wakharra rāki'an wa anāb

[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 Lord1325 and fell down bowing [in prostration] and turned in repentance [to Allāh].

Footnotes

1325 For his errors, such as fear and suspicion of the two men at the outset, any mistake in judgement he might have made, concealed feelings of partiality, etc.