ISV(i)
1 Enemies of Israel Excluded
Later that day the book of Moses was read aloud so the people could hear it, and a written command was discovered therein permanently prohibiting the Ammonites and Moabites from coming into the congregation of God
2 because they did not greet the Israelis with food and water, but instead hired Balaam to oppose them by cursing them, even though our God turned the curse into a blessing.
3 When they heard the Law, they separated all those of foreign descent from Israel.