Deuteronomy 15:4-11 (NKJV,)
…except when there may be no poor among you; for the Lord will greatly bless you in the land which the Lord your God is giving you to possess as an inheritance— only if you carefully obey the voice of the Lord your God, to observe with care all these commandments which I command you today. For the Lord your God will bless you just as He promised you; you shall lend to many nations, but you shall not borrow; you shall reign over many nations, but they shall not reign over you. Generosity to the Poor
“If there is among you a poor man of your brethren, within any of the gates in your land which the Lord your God is giving you, you shall not harden your heart nor shut your hand from your poor brother, but you shall open your hand wide to him and willingly lend him sufficient for his need, whatever he needs. Beware lest there be a wicked thought in your heart, saying, ‘The seventh year, the year of release, is at hand,’ and your eye be evil against your poor brother and you give him nothing, and he cry out to the Lord against you, and it become sin among you. You shall surely give to him, and your heart should not be grieved when you give to him, because for this thing the Lord your God will bless you in all your works and in all to which you put your hand. For the poor will never cease from the land; therefore I command you, saying, ‘You shall open your hand wide to your brother, to your poor and your needy, in your land.’
Jesus quotes this Old Testament passage when people complain about the woman how have Him an expensive gift.