David said, "He has certainly been unjust in demanding your ewe from you. Most partners transgress against each other except for the righteously striving believers who are very few." David realized that it was a test from Us so he asked forgiveness from his Lord and knelt down before him in repentance.