Numbers 25:1-9 (KJV)
And Israel abode in Shittim, and the people began to commit whoredom with the daughters of Moab. And they called the people unto the sacrifices of their gods: and the people did eat, and bowed down to their gods. And Israel joined himself unto Baalpeor: and the anger of the LORD was kindled against Israel. And the LORD said unto Moses, Take all the heads of the people, and hang them up before the LORD against the sun, that the fierce anger of the LORD may be turned away from Israel. And Moses said unto the judges of Israel, Slay ye every one his men that were joined unto Baalpeor. And, behold, one of the children of Israel came and brought unto his brethren a Midianitish woman in the sight of Moses, and in the sight of all the congregation of the children of Israel, who were weeping before the door of the tabernacle of the congregation. And when Phinehas, the son of Eleazar, the son of Aaron the priest, saw it, he rose up from among the congregation, and took a javelin in his hand; And he went after the man of Israel into the tent, and thrust both of them through, the man of Israel, and the woman through her belly. So the plague was stayed from the children of Israel. And those that died in the plague were twenty and four thousand.
It says that Israel yoked themselves to the BaalPeor The Lord asks Moses to take all the chiefs of the people and hang them in the sun before the Lord. Instead, Moses says To the judges of Israel to kill those of The men who have yoked themselves to the BaalPeor. Was he interpreting the command of the Lord properly, or was he making it an acceptable course of action, or was this what the God meant in the first place? And then, we are in the midst of a plague. Can anyone untangle this passage for me?