Deuteronomy 23:3-6
“No Ammonite or Moabite or any of their descendants for ten generations may be admitted to the assembly of the Lord. These nations did not welcome you with food and water when you came out of Egypt. Instead, they hired Balaam son of Beor from Pethor in distant Aram-naharaim to curse you. But the Lord your God refused to listen to Balaam. He turned the intended curse into a blessing because the Lord your God loves you. As long as you live, you must never promote the welfare and prosperity of the Ammonites or Moabites.