Deuteronomy 23:3-6
Deuteronomy 23:3-6 NASB1995
No Ammonite or Moabite shall 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 food and water on the way when you came out of Egypt, and because they hired 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 loves you. You shall never seek their peace or their prosperity all your days.