The LORD told Moses and Aaron, "These are the regulations for the Passover: No foreigner is to eat it,
"No resident alien is to eat anything sacred. Neither the visitor of the priest nor a hired laborer is to eat anything sacred.
No Ammonite or Moabite may participate in the assembly of the LORD, and none of their descendants shall be admitted to the assembly of the LORD, to the tenth generation,
Later that day the book of Moses was read aloud so the people could hear it, and a written command was discovered therein permanently prohibiting the Ammonites and Moabites from coming into the congregation of God
You will certainly set a king over you, whom the LORD your God will choose from among your relatives, but you must not place a foreign king over you who is not from your relatives.
When they heard the Law, they separated all those of foreign descent from Israel.
If she's displeasing to her master who selected her for himself, he must let her be redeemed. He does not have the right to sell her to foreign people, because he has dealt unfairly with her.
You may also buy from resident aliens who live among you and their families who are with you, whom they fathered in your land. They may become your property.
"You must not eat any carcass. But you may give it to the alien in your cities so he may eat it or sell it to a foreigner, for you are a holy people to the LORD your God. "You must not cook a young goat in its mother's milk."
You may exact payment from a foreigner, but cancel whatever your brother owes you.
You may charge interest to a foreigner, but don't charge interest to your relatives, so the LORD your God may bless you in everything you undertake in the land that you are about to enter and possess.