Deuteronomy 23:1-7 English Standard Version (ESV)
Those Excluded from the Assembly
23 “No one whose testicles are crushed or whose male organ is cut off shall enter the assembly of the Lord.
2 “No one born of a forbidden union may enter the assembly of the Lord. Even to the tenth generation, none of his descendants may enter the assembly of the Lord.
3 “No Ammonite or Moabite may enter the assembly of the Lord. Even to the tenth generation, none of them may enter the assembly of the Lord forever, 4 because they did not meet you with bread and with 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. 5 But the Lord your God would not listen to Balaam; instead the Lord your God turned the curse into a blessing for you, because the Lord your God loved you. 6 You shall not seek their peace or their prosperity all your days forever.
7 “You shall not abhor an Edomite, for he is your brother. You shall not abhor an Egyptian, because you were a sojourner in his land.