Mishkat al-Masabih
Haram b; Sa‘d b. Muhayyisa said that when a she-camel belonging to al-Bara’ b. ‘Azib entered a garden and did damage, God’s Messenger gave decision that the owners of gardens are responsible for guarding them by day, but that any damage done by animals during the night is a responsibility lying on their owners. Malik, Abu Dawud and Ibn Majah transmitted it.
وَعَن حَرَامِ بْنِ سَعْدِ بْنِ مُحَيِّصَةَ: أَنَّ نَاقَةً لِلْبَرَاءِ بْنِ عَازِبٍ دَخَلَتْ حَائِطًا فَأَفْسَدَتْ فَقَضَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَن أَهْلِ الْحَوَائِطِ حِفْظَهَا بِالنَّهَارِ وَأَنَّ مَا أَفْسَدَتِ الْمَوَاشِي بِاللَّيْلِ ضَامِنٌ عَلَى أَهْلِهَا. رَوَاهُ مَالِكٌ وَأَبُو دَاوُد وَابْن مَاجَه
Reference