2 of the nations concerning which Yahweh said to the children of Israel, "You shall not go among them, neither shall they come among you; for surely they will turn away your heart after their gods." Solomon joined to these in love.
*Minor differences ignored. Grouped by changes, with first version listed as example.
Ye shall not go in unto them - These words are not a quotation from the Pentateuch. They merely give the general meaning of the two passages prohibiting intermarriage with neighboring idolators (marginal references). Strictly speaking, the prohibition in the Law of intermarriage was confined to the Canaanite nations. But the principle of the prohibition applied equally to the Moabites, Ammonites, and Edomites who all bordered on the holy land; and was so applied by Ezra Ezra 9:1 and Nehemiah Nehemiah 13:23.
Of the nations concerning which the Lord said unto the children of Israel, ye shall not go in to them, neither shall they come in unto you,.... That is, they should not intermarry with one another; this is to be understood of the last mentioned, the Hittites, who were one of the seven nations this law respected, Deuteronomy 7:1.
for surely they will turn away your heart after their gods; which is the reason given for the making the above law, and was sadly verified in Solomon:
Solomon clave unto these in love; he not only took them, but kept them, and expressed a strong affection for them.
*More commentary available at chapter level.