John Gill's Bible Commentary Ver. 5. And that prophet, or that dreamer of dreams, shall be put to death , etc.] Which death, according to the Targum of Jonathan, was to be killed with the sword: because he hath spoken to turn you away from the Lord your God ; or “spoken revolt against the Lord” f126 , high treason against him, delivering out doctrine that tends to cause his subjects to rebel against him, and revolt from him; and therefore he is justly deserving of death, to draw off a people from him he had been so good and kind unto; so that to apostasy would be added the sin of ingratitude: which brought you out of the land of Egypt, and redeemed you out of the house of bondage ; and so was not only their Lord by creation whom they ought to serve, but by redemption, which laid them under double obligation to serve him: to thrust thee out of the way which the Lord thy God commanded thee to walk in ; not by external force, but by the power of persuasion, by enticing words and arguments: so shalt thou put the evil away from the midst of thee ; the evil man, by putting him to death, and the evil of idolatry, by not listening to the words of the false prophet.
Matthew Henry Commentary
Verses 1-5 - Moses had cautioned against the peril that might arise from the Canaanites. Here he cautions against the rise of idolatry amon themselves. It is needful for us to be well acquainted with the truth 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 guis 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 speciou pretences, they should not be wrought upon the forsake God, and follo other gods to serve them.
Original Hebrew והנביא5030 ההוא1931 או176 חלם2492 החלום2472 ההוא1931 יומת4191 כי3588 דבר1696 סרה5627 על5921 יהוה3068 אלהיכם430 המוציא3318 אתכם853 מארץ776 מצרים4714 והפדך6299 מבית1004 עבדים5650 להדיחך5080 מן4480 הדרך1870 אשׁר834 צוך6680 יהוה3068 אלהיך430 ללכת1980 בה ובערת1197 הרע7451 מקרבך׃7130