While many like to quote such passages as Exodus 22:18, Leviticus 19:26, 20:27, and Deuteronomy 18:10-11 to condemn divination, the reality is that there were two types of divination: good (spiritual gifts of God) and evil (tapping into demons or the spirits of the dead). It appears that the types of divination mentioned in Deuteronomy 18, for example, are foreign or used by worshipers of other gods. Also, the terms in Hebrew translated into English as “witch,” “enchantment,” “wizard,” etc. have lost their meaning and are not translated correctly. 4th and 5th Moses correct this problem.
There are many examples of righteous divination in the scriptures. The stars appear to exist to tell us the will of God in Genesis 1:14. The silver chalice placed in Benjamin's sack as he leaves Egypt was used for scrying (2 Moses 13:2, Genesis 44:2).
Numbers 5:11-31 uses a form of divination to prove a woman's faithfulness to her husband. Deuteronomy 33:8-10 requires Levites to use an Urim and Thummim and even various forms of sacrifice for divination. In Christianity divination uses different terms, such as dreams and visions, miracle working, and spiritual gifts to avoid the use of terms translators used for common forms of divination practices.