For they did not meet Bnei-Yisrael with bread and water, but instead hired Balaam against them to curse them. However, our God turned the curse into a blessing.
O My people, remember, please: What did Balak, king of Moab, propose? What did Balaam son of Beor answer him? From Shittim as far as Gilgal, so that you might acknowledge the righteous acts of Adonai.”
No one born of forbidden relations is to enter the community of Adonai—even to the tenth generation none of his descendants are to enter the community of Adonai.
No Ammonite or Moabite is to enter the community of Adonai—even to the tenth generation none belonging to them is to enter the community of Adonai forever—
because they did not meet you with bread and water on the way when you came out from Egypt, and because they hired against you Balaam son of Beor from Petor of Aram-naharaim to curse you.