Al Anbya Ayah 78
وَدَاوُۥدَ وَسُلَيْمَـٰنَ إِذْ يَحْكُمَانِ فِى ٱلْحَرْثِ إِذْ نَفَشَتْ فِيهِ غَنَمُ ٱلْقَوْمِ وَكُنَّا لِحُكْمِهِمْ شَـٰهِدِينَ ٧٨
And ?remember? when David and Solomon passed judgment regarding the crops ruined ?at night? by someone’s sheep, and We were witness to their judgments.