After the plague the Lord said to Moses and Eleazar, son of the priest Aaron,
However, 24,000 people died from that plague.
because they treated you as enemies. They plotted to trick you in the incident that took place at Peor. They used their sister Cozbi, daughter of a Midianite leader, who was killed on the day of the plague caused by the incident at Peor.”
So Moses registered the men of Israel in the Desert of Sinai as the Lord had commanded him.