Deuteronomy 23:3-4

BSB(i) 3 No Ammonite or Moabite or any of their descendants may enter the assembly of the LORD, even to the tenth generation. 4 For they did not meet you with food and water on your way out of Egypt, and they hired Balaam son of Beor from Pethor in Aram-naharaim to curse you.