It is narrated from Hazrat Bara’ (may Allah be pleased with him) that there was a she-camel which was very troublesome. Once, it entered a garden and caused some damage in it. The Noble Prophet (peace and blessings be upon him) gave this ruling: during the day, the protection of the garden is the responsibility of its owner, and the protection of animals at night is the responsibility of their owners. And if an animal causes any damage at night, its owner will be liable for compensation.