Deuteronomy 23:24-25
23:24 When you enter the vineyard of your neighbor you may eat as many grapes as you please, but you must not take away any in a container.
23:25 When you go into the ripe grain fields of your neighbor you may pluck off the kernels with your hand, but you must not use a sickle on your neighbor’s ripe grain.