He owned a she-camel that was prone to causing damage. It entered a walled garden and ruined some of it. The matter was brought before the Messenger of Allah ﷺ, who ruled that protecting walled gardens during the day is the responsibility of their owners, while guarding livestock at night is the responsibility of their owners, and that the owners of livestock are liable for whatever damage their animals cause at night.
حدثنا محمود بن خالد حدثنا الفريابي عن الأوزاعي عن الزهري عن حرام بن محيصة الأنصاري
كانت له ناقة ضارية فدخلت حائطا فأفسدت فيه فكلم رسول الله ﷺ فيها فقضى أن حفظ الحوائط بالنهار على أهلها وأن حفظ الماشية بالليل على أهلها وأن على أهل الماشية ما أصابت ماشيتهم بالليل
[Its chain of transmission is daif] Ibn Majah narrated it in Ahkam, chapter on the ruling regarding what livestock damage, no. 2332, from the hadith of Zuhri, through this route, and Hakim graded it sahih (2/47, 48), and Dhahabi agreed with him. Malik also narrated it in Muwatta (2/747, 748) from Zuhri, through this route. See the previous hadith, no. 3569.