Nations outside of Canaan
Deut 2:1-23 - Edomites, Moabites, Ammonites - they are not allowed to attack them. God granted them their land - Israel has not right to take it from them.
Before fighting the war with others nations the Israelites should first make an offer of peace (
Deut 20:10). If it is accepted, then no death follows. But if it is not accepted, men should be killed, “women, children” should be spared (
Deut 20:13-14).
But, they should not despise the Egyptians despite all that they did to them (
Deut 23:7-8).