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