Verse 6. - Israel was not to seek, i.e. care for and use means to promote, the welfare of these nations. Individuals, however, of these nations might be naturalized in Israel, and as proselytes enter the congregation, as the case of Ruth proves. It was against the nations, as such, that this ban was directed, and this they had brought on themselves by choosing to be enemies of Israel when they might have been friends and allies.
23:1-8 We ought to value the privileges of God's people, both for ourselves and for our children, above all other advantages. No personal blemishes, no crimes of our forefathers, no difference of nation, shuts us out under the Christian dispensation. But an unsound heart will deprive us of blessings; and a bad example, or an unsuitable marriage, may shut our children from them.
Thou shalt not seek their peace nor their prosperity all thy days for ever. Not that they were to retain malice towards them, or indulge a spirit of revenge, or not do them any good offices in a private way, which is contrary to the law of love; nor does this contradict any offices of kindness and friendship that might be performed in a personal way: so we find that David had a kindness for Hanun the Ammonite, and showed it, though ill rewarded for it, yet is not blamed for doing it; 2 Samuel 10:2 for these words respect not persons in a private capacity, but the people of Israel as a body politic, who, as such, were not to carry on trade and commerce with those people, nor intermarry with them, nor make leagues and enter into alliances with them; the reason of which was, because being very near neighbours to them, had there not been such a law, as a wall of partition between them, they might have become very familiar, and so have learnt their evil ways and customs, which this was designed to prevent: the Jews restrain (o) this to overtures and proclamations of peace, which they were not to make with these nations, as they were directed to do when they went out to war with others, Deuteronomy 20:10.
(o) Hilchot Melachim, c. 6. sect. 6.