7 If a poor man, one of your brothers, is with you within any of your gates in your land which Yahweh your God gives you, you shall not harden your heart, nor shut your hand from your poor brother;
*Minor differences ignored. Grouped by changes, with first version listed as example.
If there be among you a poor man The same word 'vyvn, ebyon, is used, which we have seen just above, verse 4; nor is there any contradiction when He commands them to relieve beggars, whom He had before forbidden to exist among His people; for the object of the prohibition was, that if any were reduced to beggary, they should not be cast out and forsaken. Now, however, He explains the mode of preventing this, viz., that the hands of the rich should be open to assist them. In order to incline them to compassion, he again reminds them of their common brotherhood, and sets before them, as its token and pledge, the land in which by God's goodness they dwell together. Again, that they may be willing and prompt in their humanity, He forbids them to harden their heart, thereby signifying that avarice is always cruel. Finally, He applies this instruction to the year of release, viz., that they should straightway relieve their poor brethren towards the beginning of that year, just as if they would receive back in a few days the money which the poor man would retain to its end.
If there be among you a poor man of one of thy brethren,.... As there would be, according to the Targums of Jonathan and Jerusalem, if they did not keep the commandments of the law, and continue therein:
within any of thy gates, in the land which the Lord thy God giveth thee; a native of the land was to be preferred to a foreigner, and a brother, whether in relation or religion, to a proselyte of the gate; and the poor of a city to which a man belonged, to the poor of another city, as Jarchi observes; which he gathers from this phrase:
within any of thy gates: thou shalt not harden thine heart, nor shut thine hand from thy brother; so as not to pity his distressed case, and have no bowels of compassion for him, and feel for his want, and so as not to distribute to his necessities, and relieve him.
If there be among you a poor man . . . thou shalt not harden thine heart--Lest the foregoing law should prevent the Israelites lending to the poor, Moses here admonishes them against so mean and selfish a spirit and exhorts them to give in a liberal spirit of charity and kindness, which will secure the divine blessing (Romans 12:8; 2-Corinthians 9:7).
And in general Israel was to be ready to lend to the poor among its brethren, not to harden its heart, to be hard-hearted, but to lend to the poor brother מחסרו דּי, "the sufficiency of his need," whatever he might need to relieve his wants.
*More commentary available at chapter level.