Deuteronomy 23:3-4

Deuteronomy 23:3-4 AMP

An Ammonite or Moabite shall not enter the assembly of the LORD; none of their descendants, even to the tenth generation, shall ever enter the assembly of the LORD, because they did not meet you with bread (food) and water on the road as you came out of Egypt, and because they hired [to act] against you Balaam the son of Beor from Pethor of Mesopotamia, to curse you.

Read Deuteronomy 23