[Machine] A camel belonging to Bara'ah ibn 'Azib entered a garden of some of the Ansar and caused damage. They disputed and took the matter to the Messenger of Allah ﷺ . He ruled that the owners of the gardens are responsible for their protection during the day, and the owners of the livestock are responsible for the damage caused by the livestock during the night. It was narrated from Ash-Sha'bi from Shurayh that he used to guarantee compensation for damage caused by sheep during the night but not during the day. He interpreted this verse: "And [mention] David and Solomon, when they judged concerning the field – when the sheep of a people overran it [at night]" and he used to say that the word "overran" refers to the night.
أَنَّ نَاقَةً لِلْبَرَاءِ بْنِ عَازِبٍ دَخَلَتْ حَائِطًا لِقَوْمٍ مِنَ الْأَنْصَارِ فَأَفْسَدَتْ فَاخْتَصَمُوا إِلَى رَسُولِ اللهِ ﷺ فَقَضَى أَنَّ حِفْظَ الْحَوَائِطِ عَلَى أَهْلِهَا بِالنَّهَارِ وَعَلَى أَهْلِ الْمَوَاشِي مَا أَفْسَدَتِ الْمَوَاشِي بِاللَّيْلِ وَرُوِّينَا عَنِ الشَّعْبِيِّ عَنْ شُرَيْحٍ أَنَّهُ كَانَ يَضْمَنُ مَا أَفْسَدَتِ الْغَنَمُ بِاللَّيْلِ وَلَا يَضْمَنُ مَا أَفْسَدَتْ بِالنَّهَارِ وَيَتَأَوَّلُ هَذِهِ الْآيَةَ {وَدَاوُدَ وَسُلَيْمَانَ إِذْ يَحْكُمَانِ فِي الْحَرْثِ إِذْ نَفَشَتْ فِيهِ غَنَمُ الْقَوْمِ} وَكَانَ يَقُولُ النَّفْشُ بِاللَّيْلِ