21:78

وَدَاوُودَ وَسُلَيْمَانَ إِذْ يَحْكُمَانِ فِي الْحَرْثِ إِذْ نَفَشَتْ فِيهِ غَنَمُ الْقَوْمِ وَكُنَّا لِحُكْمِهِمْ شَاهِدِينَ

Transliteration:

Wadawooda wasulaymana ith yahkumani fee alharthi ith nafashat feehi ghanamu alqawmi wakunna lihukmihim shahideena

Word by Word:

And Dawud and Sulaiman, when they judged concerning the field, when pastured in it sheep (of) a people, and We were to their judgment witness.

Translations:

AND [remember] David and Solomon - [how it was] when both of them gave judgment concerning the field into which some people's sheep had strayed by night and pastured therein, and [how] We bore witness to their judgment:

And remember David and Solomon, when they gave judgment in the matter of the field into which the sheep of certain people had strayed by night: We did witness their judgment.

And David and Solomon, when they gave judgment concerning the field, when people's sheep had strayed and browsed therein by night; and We were witnesses to their judgment.

And David and Solomon, when they gave judgment concerning the field, when the people's sheep strayed therein by night, and We were bearers of witness to their judgment.

And [mention] David and Solomon, when they judged concerning the field - when the sheep of a people overran it [at night], and We were witness to their judgement.