Deuteronomy 23 [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. You shall not seek their peace nor their prosperity all your days forever. You shall not abhor an Edomite; for he is your brother. You shall not abhor an Egyptian, because you lived as a foreigner in his land. The children of the third generation who are born to them may enter into Yahweh’s assembly. When you go out and camp against your enemies, then you shall keep yourselves from every evil thing.
Deuteronomy 23 [10.] If there is among you any man who is not clean by reason of that which happens him by night, then shall he go outside of the camp. He shall not come within the camp; but it shall be, when evening comes, he shall bathe himself in water. When the sun is down, he shall come within the camp. You shall have a place also outside of the camp where you go relieve yourself. You shall have a trowel among your weapons. It shall be, when you relieve yourself, you shall dig with it, and shall turn back and cover your excrement; for Yahweh your God walks in the middle of your camp, to deliver you, and to give up your enemies before you. Therefore your camp shall be holy, that he may not see an unclean thing in you, and turn away from you.