Deuteronomy 13:5

But that prophet or forger of dreams shall be put to death. For he has spoken so as to turn you away from the Lord your God, who led you away from the land of Egypt and who redeemed you from the house of servitude, and so as to cause you to wander from the way that the Lord your God has entrusted to you. And so shall you remove the evil from your midst

Other versions

King James Version

And that prophet, or that dreamer of dreams, shall be put to death; because he hath spoken to turn you away from the LORD your God, which brought you out of the land of Egypt, and redeemed you out of the house of bondage, to thrust thee out of the way which the LORD thy God commanded thee to walk in. So shalt thou put the evil away from the midst of thee.

English Standard Version

But that prophet or that dreamer of dreams shall be put to death, because he has taught rebellion against the LORD your God, who brought you out of the land of Egypt and redeemed you out of the house of slavery, to make you leave the way in which the LORD your God commanded you to walk. So you shall purge the evil from your midst.

New International Version

That prophet or dreamer must be put to death, because he preached rebellion against the LORD your God, who brought you out of Egypt and redeemed you from the land of slavery; he has tried to turn you from the way the LORD your God commanded you to follow. You must purge the evil from among you.