II. God's just displeasure against them for this sin. Israel's whoredoms did that which all Balaam's enchantments could not do, they set God against them; now he was turned to be their enemy, and fought against them. So many of the people, nay, so many of the princes, were guilty, that the sin became national, and for it God was wroth with the whole congregation. 1. A plague immediately broke out, for we read of the staying of it (v. 8), and of the number that died of it (v. 9), but no mention of the beginning of it, which therefore must be implied in those words (v. 3), The anger of the Lord was kindled against Israel. It is said expressly (Ps. cvi. 29), The plague broke in. Note, Epidemical diseases are the fruits of God's anger, and the just punishments of epidemical sins; one infection follows the other. The plague, no doubt, fastened on those that were most guilty, who were soon made to pay dearly for their forbidden pleasures; and though now God does not always plague such sinners, as he did here, yet that word of God will be fulfilled, If any man defile the temple of God, him shall God destroy, 1 Cor. iii. 17. 2. The ringleaders are ordered to be put to death by the hand of public justice, which will be the only way to stay the plague (v. 4): Take the heads of the people (that is, of that part of the people that went out of the camp of Israel into the country of Moab, to join in their idolatries)—take them and hang them up before the sun, as sacrifices to God's justice, and for a terror to the rest of the people. The judges must first order them to be slain with the sword (v. 5), and their dead bodies must be hanged up, that the stupid Israelites, seeing their leaders and princes so severely punished for their whoredom and idolatry, without any regard to their quality, might be possessed with a sense of the evil of the sin and the terror of God's wrath against them. Ringleaders in sin ought to be made examples of justice.