أَخْبَرَنَا الشَّافِعِيُّ رَضِيَ اللَّهُ عَنْهُ، قَالَ: أَخْبَرَنَا مَالِكُ بْنُ أَنَسٍ، عَنِ ابْنِ شِهَابٍ، عَنْ حَرَامِ بْنِ سَعْدِ بْنِ مُحَيِّصَةَ: "أَنَّ نَاقَةً لِلْبَرَاءِ بْنِ عَازِبٍ دَخَلَتْ حَائِطًا لِقَوْمٍ، فَأَفْسَدَتْ فِيهِ فَقَضَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَى أَهْلِ الْأَمْوَالِ حِفْظَهَا بِالنَّهَارِ، وَمَا أَفْسَدَتِ الْمَوَاشِي بِاللَّيْلِ فَهُوَ ضَامِنٌ عَلَى أَهْلِهَا" .
It is narrated from Haram bin Sa'd bin Muhisah that the she-camel of Bara' bin Azib (may Allah be pleased with him) entered the garden of a people and destroyed it. So the Messenger of Allah (ﷺ) gave the verdict that during the day, the protection of property is the responsibility of the owners, and if livestock cause damage at night, then their owner is liable for it. (That is, the loss occurring at night will be taken from the owner of the animal.)