Deuteronomy 23:23-24
23:23 Whatever you vow, you must be careful to do what you have promised, such as what you have vowed to the Lord your God as a freewill offering.
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.