Deuteronomy 4:3
Your eyes have seen what the LORD did because of Baalpeor: for all the men that followed Baalpeor, the LORD thy God hath destroyed them from among you.
Your eyes have seen what the Lord did because of Baalpeor,.... Because of the idolatry the people of Israel fell into by worshipping that idol, being drawn into it by the daughters of Moab and Midian, through the counsel of Balaam, with whom they committed fornication; which led them to the other sin, and both highly provoking to God. The Targums of Onkelos and Jonathan are,
"what the Word of the Lord has done to the worshippers of the idol Peor;''
for all the men that followed Baalpeor, the LORD thy God hath destroyed them from among you; 24,000 persons died on that account; which being a recent thing, fresh in memory, and what they were eyewitnesses of, was a caution to them to avoid the same sins, as it is to us on whom the ends of the world are come, Numbers 23:9.