Manusmriti
तत्रापरिवृतं धान्यं विहिंस्युः पशवो यदि । न तत्र प्रणयेद् दण्डं नृपतिः पशुरक्षिणाम् ॥ २३८ ॥
If the cattle do damage to unfenced crops on that (common), the king shall in that case not punish the herdsmen.
english translation
tatrAparivRtaM dhAnyaM vihiMsyuH pazavo yadi । na tatra praNayed daNDaM nRpatiH pazurakSiNAm ॥ 238 ॥
hk transliteration by Sanscript