And has the news of the litigants reached you? When they climbed over the wall into (his) Mihrab (a praying place or a private room,).
When they entered in upon Dawud (David), he was terrified of them, they said:"Fear not! (We are) two litigants, one of whom has wronged the other, therefore judge between us with truth, and treat us not with injustice, and guide us to the Right Way.
Verily, this my brother (in religion) has ninety nine ewes, while I have (only) one ewe, and he says:"Hand it over to me, and he overpowered me in speech."
[Dawud (David)] said (immediately without listening to the opponent):"He has wronged you in demanding your ewe in addition to his ewes. And, verily, many partners oppress one another, except those who believe and do righteous good deeds, and they are few." And Dawud (David) guessed that We have tried him and he sought Forgiveness of his Lord, and he fell down prostrate and turned (to Allah) in repentance.
So We forgave him that, and verily, for him is a near access to Us, and a good place of (final) return (Paradise).
O Dawud (David)! Verily! We have placed you as a successor on earth, so judge you between men in truth (and justice) and follow not your desire for it will mislead you from the Path of Allah. Verily! Those who wander astray from the Path of Allah (shall) have a severe torment, because they forgot the Day of Reckoning.
And We created not the heaven and the earth and all that is between them without purpose! That is the consideration of those who disbelieve! Then woe to those who disbelieve (in Islamic Monotheism) from the Fire!
Shall We treat those who believe (in the Oneness of Allah Islamic Monotheism) and do righteous good deeds, as Mufsidun (those who associate partners in worship with Allah and commit crimes) on earth? Or shall We treat the Muttaqun (pious - see V.2:2), as the Fujjar (criminals, disbelievers, wicked, etc)?
(This is) a Book (the Quran) which We have sent down to you, full of blessings that they may ponder over its Verses, and that men of understanding may remember.
And to Dawud (David) We gave Sulaiman (Solomon). How excellent (a) slave! Verily, he was ever oft-returning in repentance (to Us)!
When there were displayed before him, in the afternoon, well trained horses of the highest breed [for Jihad (holy fighting in Allah"s Cause)].
And he said:"Alas! I did love the good (these horses) instead of remembering my Lord (in my"Asr prayer)" till the time was over, and (the sun) had hidden in the veil (of night).
Then he said"Bring them (horses) back to me." Then he began to pass his hand over their legs and their necks (till the end of the display).
And, indeed We did try Sulaiman (Solomon) and We placed on his throne Jasadan (a devil, so he lost his kingdom for a while) but he did return (to his throne and kingdom by the Grace of Allah and he did return) to Allah with obedience and in repentance.
He said:"My Lord! Forgive me, and bestow upon me a kingdom such as shall not belong to any other after me: Verily, You are the Bestower."
So, We subjected to him the wind, it blew gently to his order whithersoever he willed,
And also the Shayatin (devils) from the jinns (including) every kind of builder and diver,
And also others bound in fetters.
[Saying of Allah to Sulaiman (Solomon)]:"This is Our gift, so spend you or withhold, no account will be asked."
And verily, he enjoyed a near access to Us, and a good final return (Paradise).