[Machine] A vineyard had produced its grapes, but the sheep ruined it. Dawood (David) decided to grant the vineyard to the owner of the sheep. Sulaiman (Solomon) said, "This is not fair, O Prophet of Allah." Dawood asked, "Why?" Sulaiman replied, "You should transfer the vineyard to its owner, and the sheep to its owner, until the vineyard returns to its previous state." Allah, the Almighty, says, "So We made Sulaiman understand it, and to each [of them] We gave judgement and knowledge." (Quran 21:79). Adh-Dhahabi remained silent regarding the summary.
فِي قَوْلِهِ ﷻ {وَدَاوُدَ وَسُلَيْمَانَ إِذْ يَحْكُمَانِ فِي الْحَرْثِ إِذْ نَفَشَتْ فِيهِ غَنَمُ الْقَوْمِ} قَالَ كَرْمٌ قَدْ أَنْبَتَتْ عَنَاقِيدُهُ فَأَفْسَدَتْهُ الْغَنَمُ قَالَ فَقَضَى دَاوُدُ بِالْغَنَمِ لِصَاحِبِ الْكَرْمِ فَقَالَ سُلَيْمَانُ غَيْرَ هَذَا يَا نَبِيَّ اللَّهِ قَالَ وَمَا ذَاكَ؟ قَالَ تَدْفَعُ الْكَرْمَ إِلَى صَاحِبِ الْغَنَمِ فَيَقُومُ عَلَيْهِ حَتَّى يَعُودَ كَمَا كَانَ وَتَدْفَعُ الْغَنَمَ إِلَى صَاحِبِ الْكَرْمِ فَيُصِيبَ مِنْهَا حَتَّى إِذَا عَادَ الْكَرْمُ كَمَا كَانَ دَفَعْتَ الْكَرْمَ إِلَى صَاحِبِهِ وَدَفَعْتَ الْغَنَمَ إِلَى صَاحِبِهَا قَالَ اللَّهُ ﷻ {فَفَهَّمْنَاهَا سُلَيْمَانَ وَكُلًّا آتَيْنَا حُكْمًا وَعِلْمًا} [الأنبياء 79] سكت عنه الذهبي في التلخيص