5 The false prophets or visionaries who try to lead you astray must be put to death, for they encourage rebellion against the Lord your God, who redeemed you from slavery and brought you out of the land of Egypt. Since they try to lead you astray from the way the Lord your God commanded you to live, you must put them to death. In this way you will purge the evil from among you.

Matthew Henry's Commentary on Deuteronomy 13:5

Commentary on Deuteronomy 13:1-5

(Read Deuteronomy 13:1-5)

Moses had cautioned against the peril that might arise from the Canaanites. Here he cautions against the rise of idolatry among themselves. It is needful for us to be well acquainted with the truths and precepts of the Bible; for we may expect to be proved by temptations of evil under the appearance of good, of error in the guise of truth; nor can any thing rightly oppose such temptations, but the plain, express testimony of God's word to the contrary. And it would be a proof of sincere affection for God, that, notwithstanding specious pretences, they should not be wrought upon the forsake God, and follow other gods to serve them.