Deuteronomy 13:5

5 But those prophets or those who divine by dreams shall be put to death for having spoken treason against the Lord your God—who brought you out of the land of Egypt and redeemed you from the house of slavery—to turn you from the way in which the Lord your God commanded you to walk. So you shall purge the evil from your midst.

Deuteronomy 13:5 In-Context

3 you must not heed the words of those prophets or those who divine by dreams; for the Lord your God is testing you, to know whether you indeed love the Lord your God with all your heart and soul.
4 The Lord your God you shall follow, him alone you shall fear, his commandments you shall keep, his voice you shall obey, him you shall serve, and to him you shall hold fast.
5 But those prophets or those who divine by dreams shall be put to death for having spoken treason against the Lord your God—who brought you out of the land of Egypt and redeemed you from the house of slavery—to turn you from the way in which the Lord your God commanded you to walk. So you shall purge the evil from your midst.
6 If anyone secretly entices you—even if it is your brother, your father's son or your mother's son, or your own son or daughter, or the wife you embrace, or your most intimate friend—saying, "Let us go worship other gods," whom neither you nor your ancestors have known,
7 any of the gods of the peoples that are around you, whether near you or far away from you, from one end of the earth to the other,
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.