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)
أَنَّ نَاقَةً لِلْبَرَاءِ بْنِ عَازِبٍ دَخَلَتْ حَائِطًا لِقَوْمٍ فَأَفْسَدَتْ فِيهِ فَقَضَى رَسُولُ اللهِ ﷺ عَلَى أَهْلِ الْأَمْوَالِ حِفْظُهَا بِالنَّهَارِ وَمَا أَفْسَدَتِ الْمَوَاشِي بِاللَّيْلِ فَهُوَ ضَامِنٌ عَلَى أَهْلِهَا