Surah Saad, Verse 24
Translation — Sahih International
[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 Allah].
Source
Kur'an-ı Kerim, Sâd Suresi 38:24
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/38-suresi-24-ayet