Deuteronomy 13:5

New American Standard Bible (NASB)
But that prophet or that dreamer of dreams shall be put to death, because he has [b]counseled [c]rebellion against the Lord your God who brought you from the land of Egypt and redeemed you from the house of [d]slavery, to seduce you from the way in which the Lord your God commanded you to walk. So you shall purge the evil from among you.

Read Deuteronomy 13:5 in other translations