Exodus 22:5

If a man shall cause a field or vineyard to be eaten, and shall put in his beast, and shall feed in another man’s field; of the best of his own field, and of the best of his own vineyard, shall he make restitution.

Cross-reference

Exodus 21:34 covers compensation for an animal killed by a pit — another negligence-based restitution law, similar in principle to grazing damage.