Maliks Muwatta Book 36, Hadith Number 37.
Section : Judgement on Animals Grazing on Other People’s Crops and Animals Stolen from the Herd.
Yahya related to me from Malik from Ibn Shihab from Haram ibn Sad ibn Muhayyisa that a female camel of al-Bara ibn Azib entered the garden of a man and it did some damage to it. The Messenger of Allah, may Allah bless him and grant him peace, gave a judgement that the people of the garden were responsible for guarding it in the day, and the owner of the animals was liable for what the animals destroyed at night.