The she-camel of Bara' ibn Azib entered the garden of a man and did damage to it. The Messenger of Allah ﷺ gave decision that the owners of properties are responsible for guarding them by day, and the owners of animals are responsible for guarding them by night. (Using translation from Abū Dāʾūd 3569)
أَنَّ نَاقَةً لِلْبَرَاءِ بْنِ عَازِبٍ دَخَلَتْ حَائِطَ قَوْمٍ فَأَفْسَدَتْ فَقَضَى رَسُولُ اللهِ ﷺ بِحِفْظِ الْأَمْوَالِ عَلَى أَهْلِهَا بِالنَّهَارِ وَأَنَّ عَلَى أَهْلِ الْمَاشِيَةِ مَا أَصَابَتْ بِاللَّيْلِ