Deuteronomy 23:1-7
1 “If a man’s testicles are crushed or his penis is cut off, he may not be admitted to the assembly of the Lord.
2 “If a person is illegitimate by birth, neither he nor his descendants for ten generations may be admitted to the assembly of the Lord.
3 “No Ammonite or Moabite or any of their descendants for ten generations may be admitted to the assembly of the Lord. 4 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. 5 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. 6 As long as you live, you must never promote the welfare and prosperity of the Ammonites or Moabites.
7 “Do not detest the Edomites or the Egyptians, because the Edomites are your relatives and you lived as foreigners among the Egyptians.