131 If a prophet, or one who foretells by dreams, appears among you and announces to you a sign or wonder, 2 and if the sign or wonder spoken of takes place, and the prophet says, "Let us follow other gods" (gods you have not known) "and let us worship them," 3 you must not listen to the words of that prophet or dreamer. The Lord your God is testing you to find out whether you love him with all your heart and with all your soul. 4 It is the Lord your God you must follow, and him you must revere. Keep his commands and obey him; serve him and hold fast to him. 5 That prophet or dreamer must be put to death for inciting rebellion against the Lord your God, who brought you out of Egypt and redeemed you from the land of slavery. That prophet or dreamer tried to turn you from the way the Lord your God commanded you to follow. You must purge the evil from among you.

Matthew Henry's Commentary on Deuteronomy 13:1-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.