Deuteronomy 23:1-6

1 He who is wounded in the stones, or has his privy member cut off, shall not enter into the assembly of Yahweh.
2 A bastard shall not enter into the assembly of Yahweh; even to the tenth generation shall none of his enter into the assembly of Yahweh.
3 An Ammonite or a Moabite shall not enter into the assembly of Yahweh; even to the tenth generation shall none belonging to them enter into the assembly of Yahweh forever:
4 because they didn't meet you with bread and with water in the way, when you came forth out of Egypt, and because they hired against you Balaam the son of Beor from Pethor of Mesopotamia, to curse you
5 Nevertheless Yahweh your God wouldn't listen to Balaam; but Yahweh your God turned the curse into a blessing to you, because Yahweh your God loved you.
6 You shall not seek their peace nor their prosperity all your days forever.
The World English Bible is in the public domain.