Nehemiah 13:1-3 MSG

1 Also on that same day there was a reading from the Book of Moses in the hearing of the people. It was found written there that no Ammonite or Moabite was permitted to enter the congregation of God,
2 because they hadn't welcomed the People of Israel with food and drink; they even hired Balaam to work against them by cursing them, but our God turned the curse into a blessing.
3 When they heard the reading of The Revelation, they excluded all foreigners from Israel.