(Ambiya') 21 : 78
وَدَاوُودَ وَسُلَيْمَانَ إِذْ يَحْكُمَانِ فِي الْحَرْثِ إِذْ نَفَشَتْ فِيهِ غَنَمُ الْقَوْمِ وَكُنَّا لِحُكْمِهِمْ شَاهِدِينَ

And to Dawood and Suleiman, when they judged concerning the matter where the sheep of a people overran into others farmland, and We were a Witness to their judgment.