Torah Mattot Num 30:2 32: 42

Mattot means "Tribes" in Hebrew.

Summary of Mattot: Moses instructs the tribes on YHVHs commands concerning vows and oaths.  They are binding for a man, but a womans can be annulled by her father or her husband (if she lives with either) on the first day; otherwise, they stand.  YHVH tells Moses to rouse the people into battle with the Midianites, after which he will be allowed to die. Moses instructs each of the 12 tribes to send legions into battle with Pinchas, who is to have oversight of the holy vessels and the trumpets.  They slew the five kings of Midian  and  Balaam, the Moabite prophet.  They took the women and children as spoils, along with the livestock.  They destroyed the Midianite cities and camps by fire.  Moses is angry that the women were allowed to live because they had seduced the men into following foreign gods.  He instructs the soldiers to kill all the Midianite captives except for the virgin girls.  After the killings, the soldiers are to follow the standard purification rituals of coming into contact with the dead.  YHVH gives Moses instructions on how to distribute the spoils of war.  Half are to go to the warriors, half to the people who remained home, and each is taxed 1 out of 500 of the girls and the animals set apart for YHVH.  The tribes of Reuben and Gad noted that Gilead on the east side of the Jordan was ideal for cattle; they asked Moses if they could remain there and Moses, after haranguing them about how they were refusing the Promised land, said they could stay as long as they support the other tribes in case of war in Canaan.  They agree and Moses allows them to stay on the east side of the Jordan along with half of the tribe of Manasseh.