Al-Hasan on Samura’s authority reported the Prophet as saying, “When any of you comes upon animals whose owner is among them he must ask his permission; if not he must call three times and if anyone answers him he must ask his permission; but if no one answers him he may draw some milk and drink, but not carry any away.”
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.