Nehemiah 13:1-3 ESV
On that day they read from the Book of Moses in the hearing of the people. And in it was found written that no Ammonite or Moabite should ever enter the assembly of God, for they did not meet the people of Israel with bread and water, but hired Balaam against them to curse them—yet our God turned the curse into a blessing. As soon as the people heard the law, they separated from Israel all those of foreign descent.
ESV: English Standard Version 2016