While Israel was staying in Shittim, the men began to indulge in sexual immorality with Moabite women,
who invited them to the sacrifices to their gods. The people ate and bowed down before these gods.
So Israel joined in worshiping the Baal of Peor. And the LORD's anger burned against them.
The LORD said to Moses, "Take all the leaders of these people, kill them and expose them in broad daylight before the LORD, so that the LORD's fierce anger may turn away from Israel."
So Moses said to Israel's judges, "Each of you must put to death those of your men who have joined in worshiping the Baal of Peor."
Then an Israelite man brought to his family a Midianite woman right before the eyes of Moses and the whole assembly of Israel while they were weeping at the entrance to the Tent of Meeting.
When Phinehas son of Eleazar, the son of Aaron, the priest, saw this, he left the assembly, took a spear in his hand
and followed the Israelite into the tent. He drove the spear through both of them--through the Israelite and into the woman's body. Then the plague against the Israelites was stopped;
but those who died in the plague numbered 24,000.
The LORD said to Moses,
"Phinehas son of Eleazar, the son of Aaron, the priest, has turned my anger away from the Israelites; for he was as zealous as I am for my honor among them, so that in my zeal I did not put an end to them.
Therefore tell him I am making my covenant of peace with him.
He and his descendants will have a covenant of a lasting priesthood, because he was zealous for the honor of his God and made atonement for the Israelites."
The name of the Israelite who was killed with the Midianite woman was Zimri son of Salu, the leader of a Simeonite family.
And the name of the Midianite woman who was put to death was Cozbi daughter of Zur, a tribal chief of a Midianite family.
The LORD said to Moses,
"Treat the Midianites as enemies and kill them,
because they treated you as enemies when they deceived you in the affair of Peor and their sister Cozbi, the daughter of a Midianite leader, the woman who was killed when the plague came as a result of Peor."
After the plague the LORD said to Moses and Eleazar son of Aaron, the priest,
"Take a census of the whole Israelite community by families--all those twenty years old or more who are able to serve in the army of Israel."
So on the plains of Moab by the Jordan across from Jericho, Moses and Eleazar the priest spoke with them and said,
"Take a census of the men twenty years old or more, as the LORD commanded Moses." These were the Israelites who came out of Egypt:
The descendants of Reuben, the firstborn son of Israel, were: through Hanoch, the Hanochite clan; through Pallu, the Palluite clan;
through Hezron, the Hezronite clan; through Carmi, the Carmite clan.
These were the clans of Reuben; those numbered were 43,730.
The son of Pallu was Eliab,
and the sons of Eliab were Nemuel, Dathan and Abiram. The same Dathan and Abiram were the community officials who rebelled against Moses and Aaron and were among Korah's followers when they rebelled against the LORD.
The earth opened its mouth and swallowed them along with Korah, whose followers died when the fire devoured the 250 men. And they served as a warning sign.
The line of Korah, however, did not die out.
The descendants of Simeon by their clans were: through Nemuel, the Nemuelite clan; through Jamin, the Jaminite clan; through Jakin, the Jakinite clan;
through Zerah, the Zerahite clan; through Shaul, the Shaulite clan.
These were the clans of Simeon; there were 22,200 men.
The descendants of Gad by their clans were: through Zephon, the Zephonite clan; through Haggi, the Haggite clan; through Shuni, the Shunite clan;
through Ozni, the Oznite clan; through Eri, the Erite clan;
through Arodi, the Arodite clan; through Areli, the Arelite clan.
These were the clans of Gad; those numbered were 40,500.
Er and Onan were sons of Judah, but they died in Canaan.
The descendants of Judah by their clans were: through Shelah, the Shelanite clan; through Perez, the Perezite clan; through Zerah, the Zerahite clan.
The descendants of Perez were: through Hezron, the Hezronite clan; through Hamul, the Hamulite clan.
These were the clans of Judah; those numbered were 76,500.
The descendants of Issachar by their clans were: through Tola, the Tolaite clan; through Puah, the Puite clan;
through Jashub, the Jashubite clan; through Shimron, the Shimronite clan.
These were the clans of Issachar; those numbered were 64,300.
The descendants of Zebulun by their clans were: through Sered, the Seredite clan; through Elon, the Elonite clan; through Jahleel, the Jahleelite clan.
These were the clans of Zebulun; those numbered were 60,500.
The descendants of Joseph by their clans through Manasseh and Ephraim were:
The descendants of Manasseh: through Makir, the Makirite clan (Makir was the father of Gilead); through Gilead, the Gileadite clan.
These were the descendants of Gilead: through Iezer, the Iezerite clan; through Helek, the Helekite clan;
through Asriel, the Asrielite clan; through Shechem, the Shechemite clan;
through Shemida, the Shemidaite clan; through Hepher, the Hepherite clan.
(Zelophehad son of Hepher had no sons; he had only daughters, whose names were Mahlah, Noah, Hoglah, Milcah and Tirzah.)
These were the clans of Manasseh; those numbered were 52,700.
These were the descendants of Ephraim by their clans: through Shuthelah, the Shuthelahite clan; through Beker, the Bekerite clan; through Tahan, the Tahanite clan.
These were the descendants of Shuthelah: through Eran, the Eranite clan.
These were the clans of Ephraim; those numbered were 32,500. These were the descendants of Joseph by their clans.
The descendants of Benjamin by their clans were: through Bela, the Belaite clan; through Ashbel, the Ashbelite clan; through Ahiram, the Ahiramite clan;
through Shupham, the Shuphamite clan; through Hupham, the Huphamite clan.
The descendants of Bela through Ard and Naaman were: through Ard, the Ardite clan; through Naaman, the Naamite clan.
These were the clans of Benjamin; those numbered were 45,600.
These were the descendants of Dan by their clans: through Shuham, the Shuhamite clan. These were the clans of Dan:
All of them were Shuhamite clans; and those numbered were 64,400.
The descendants of Asher by their clans were: through Imnah, the Imnite clan; through Ishvi, the Ishvite clan; through Beriah, the Beriite clan;
and through the descendants of Beriah: through Heber, the Heberite clan; through Malkiel, the Malkielite clan.
(Asher had a daughter named Serah.)
These were the clans of Asher; those numbered were 53,400.
The descendants of Naphtali by their clans were: through Jahzeel, the Jahzeelite clan; through Guni, the Gunite clan;
through Jezer, the Jezerite clan; through Shillem, the Shillemite clan.
These were the clans of Naphtali; those numbered were 45,400.
The total number of the men of Israel was 601,730.
The LORD said to Moses,
"The land is to be allotted to them as an inheritance based on the number of names.
To a larger group give a larger inheritance, and to a smaller group a smaller one; each is to receive its inheritance according to the number of those listed.
Be sure that the land is distributed by lot. What each group inherits will be according to the names for its ancestral tribe.
Each inheritance is to be distributed by lot among the larger and smaller groups."
These were the Levites who were counted by their clans: through Gershon, the Gershonite clan; through Kohath, the Kohathite clan; through Merari, the Merarite clan.
These also were Levite clans: the Libnite clan, the Hebronite clan, the Mahlite clan, the Mushite clan, the Korahite clan. (Kohath was the forefather of Amram;
the name of Amram's wife was Jochebed, a descendant of Levi, who was born to the Levites in Egypt. To Amram she bore Aaron, Moses and their sister Miriam.
Aaron was the father of Nadab and Abihu, Eleazar and Ithamar.
But Nadab and Abihu died when they made an offering before the LORD with unauthorized fire.)
All the male Levites a month old or more numbered 23,000. They were not counted along with the other Israelites because they received no inheritance among them.
These are the ones counted by Moses and Eleazar the priest when they counted the Israelites on the plains of Moab by the Jordan across from Jericho.
Not one of them was among those counted by Moses and Aaron the priest when they counted the Israelites in the Desert of Sinai.
For the LORD had told those Israelites they would surely die in the desert, and not one of them was left except Caleb son of Jephunneh and Joshua son of Nun.