1If a prophet or a dreamer of dreams arises among you, and he gives you a sign or a wonder, 2and the sign or the wonder comes to pass, of which he spoke to you, saying, “Let’s go after other gods” (which you have not known) “and let’s serve them,” 3you shall not listen to the words of that prophet, or to that dreamer of dreams; for Yahweh your God is testing you, to know whether you love Yahweh your God with all your heart and with all your soul. 4You shall walk after Yahweh your God, fear him, keep his commandments, and obey his voice. You shall serve him, and cling to him. 5That 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 remove the evil from among you.
6If 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, entices you secretly, saying, “Let’s go and serve other gods”—which you have not known, you, nor your fathers; 7of 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— 8you shall not consent to him nor listen to him; neither shall your eye pity him, neither shall you spare, neither shall you conceal him; 9but you shall surely kill him. Your hand shall be first on him to put him to death, and afterwards the hands of all the people. 10You 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. 11All Israel shall hear, and fear, and shall not do any more wickedness like this among you.
12If you hear about one of your cities, which Yahweh your God gives you to dwell there, that 13certain wicked fellows have gone out from among you and have drawn away the inhabitants of their city, saying, “Let’s go and serve other gods,” which you have not known, 14then you shall inquire, investigate, and ask diligently. Behold, if it is true, and the thing certain, that such abomination was done among you, 15you shall surely strike the inhabitants of that city with the edge of the sword, destroying it utterly, with all that is therein and its livestock, with the edge of the sword. 16You shall gather all its plunder into the middle of its street, and shall burn with fire the city, with all of its plunder, to Yahweh your God. It shall be a heap forever. It shall not be built again. 17Nothing of the devoted thing shall cling to your hand, that Yahweh may turn from the fierceness of his anger and show you mercy, and have compassion on you and multiply you, as he has sworn to your fathers, 18when you listen to Yahweh your God’s voice, to keep all his commandments which I command you today, to do that which is right in Yahweh your God’s eyes.
We encounter in Numbers 22-24 the prophet Balaam, a prophet who did not come from God, but in fact comes to be known as a wicked prophet who was prohibited by Yahweh, the God of Israel, from cursing His people. Thus he was a wicked man, but not a false prophet, at least in the instances in the book of Numbers. We see in Numbers 22:21 that on the way to meet the Moabite king, he had an unusual encounter with an angel sent from God to warn him not to speak any curse against Israel. Balaam's donkey could see the angel and even spoke to Balaam before it was revealed to Balaam that had the donkey not stopped and even rebuked Balaam, he would have been killed by God (Num 22:21-33). After his failure to curse Israel for the Moabite king, he makes a prophecy of the coming Messiah (Num 24:11). The end of the story occurs in chapter 24, however, in which the evil prophet Balaam suggests ways in which he could entice the Israelites into false worship and sexual immorality that brought God's judgment on them.
"Balaam’s name and story became infamous, and he is referred to several times in the New Testament. Peter compares false teachers to Balaam, “who loved the wages of wickedness” (2 Peter 2:15). Jude echoes this sentiment, associating Balaam with the selling of one’s soul for financial gain (Jude 1:11). Finally, Jesus speaks of Balaam when He warns the church in Pergamum of their sin: “There are some among you who hold to the teaching of Balaam, who taught Balak to entice the Israelites to sin so that they ate food sacrificed to idols and committed sexual immorality” (Revelation 2:14). Satan’s tactics haven’t changed all that much. If he cannot curse God’s people directly, he will try the back-door approach, and idolatry and sexual immorality are his go-to temptations." [1]