"If a man's testicles are crushed or his penis is cut off, he may not be included in the assembly of the LORD."
"Those of illegitimate birth and their descendants for ten generations may not be included in the assembly of the LORD."
"No Ammonites or Moabites, or any of their descendants for ten generations, may be included in the assembly of the LORD.
These nations did not welcome you with food and water when you came out of Egypt. Instead, they tried to hire Balaam son of Beor from Pethor in Aram-naharaim to curse you
References for Deuteronomy 23:4
(But the LORD your God would not listen to Balaam. He turned the intended curse into a blessing because the LORD your God loves you.)
You must never, as long as you live, try to help the Ammonites or the Moabites in any way."
"Do not detest the Edomites or the Egyptians, because the Edomites are your relatives, and you lived as foreigners among the Egyptians.