Deuteronomy 23:1-8
Meetings to worship God
1 Perhaps a man has sex parts that someone has destroyed or spoiled. That man cannot join with the Lord's people when they meet together. 2 If someone was born when his parents were not properly married, he cannot join with the Lord's people. His descendants may not meet with the Lord's people to worship the Lord either. That will continue to the tenth generation of the man's descendants.
3 Ammonite and Moabite people also cannot join with the Lord's people when they come together to worship him. Even the tenth generation of their descendants can never do this. 4 The people of those nations refused to help you when you were leaving Egypt. They did not give you food or water. Also, they paid Beor's son Balaam to curse you. He came from Pethor in Mesopotamia. 5 But the Lord your God refused to listen to Balaam. He refused to curse you. Instead, he blessed you. The Lord your God did that because he loves you. 6 You must never do anything to help these two nations. Do not let them live in peace.
7 But do not hate anyone from Edom. The Edomites have the same ancestor as you. Do not hate an Egyptian person. You once lived as foreigners in Egypt. 8 The third generation of their descendants can join with the Lord's people when they meet together to worship him.