Deuteronomy 23:3-6
Deuteronomy 23:3-6 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. Nevertheless, the LORD your God was not willing to listen to Balaam, but the LORD your God turned the curse into a blessing for you because the LORD your God has loved you. You shall never seek their peace nor their prosperity all your days.