2 and the sign or the wonder come to pass, of which he spoke to you, saying, “Let us go after other gods” (which you have not known) “and let us serve them;” 3 you shall not listen to the words of that prophet, or to that dreamer of dreams: for Yahweh your God proves you, to know whether you love Yahweh your God with all your heart and with all your soul. 4 You shall walk after Yahweh your God, and fear him, and keep his commandments, and obey his voice, and you shall serve him, and cleave to him. 5 That prophet, or that dreamer of dreams, shall be put to death, because he has spoken rebellion against Yahweh your God, who brought you out of the land of Egypt, and redeemed you out of the house of bondage, to draw you aside out of the way which Yahweh your God commanded you to walk in. So you shall put away the evil from the midst of you.

6 If your brother, the son of your mother, or your son, or your daughter, or the wife of your bosom, or your friend, who is as your own soul, entice you secretly, saying, “Let us go and serve other gods,” which you have not known, you, nor your fathers; 7 of the gods of the peoples who are around you, near to you, or far off from you, from the one end of the earth even to the other end of the earth; 8 you shall not consent to him, nor listen to him; neither shall your eye pity him, neither shall you spare, neither shall you conceal him: 9 but you shall surely kill him; your hand shall be first on him to put him to death, and afterwards the hand of all the people. 10 You shall stone him to death with stones, because he has sought to draw you away from Yahweh your God, who brought you out of the land of Egypt, out of the house of bondage.

Matthew Henry's Commentary on Deuteronomy 13:2-10

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.

Commentary on Deuteronomy 13:6-11

(Read Deuteronomy 13:6-11)

It is the policy of Satan to try to lead us to evil by those whom we love, whom we least suspect of any ill design, and whom we are desirous to please, and apt to conform to. The enticement here is supposed to come from a brother or child, who are near by nature; from a wife or friend, who are near by choice, and are to us as our souls. But it is our duty to prefer God and religion, before the nearest and dearest friends we have in the world. We must not, to please our friends, break God's law. Thou shalt not consent to him, nor go with him, not for company, or curiosity, not to gain his affections. It is a general rule, If sinners entice thee, consent thou not, Proverbs 1:10. And we must not hinder the course of God's justice.