There are always two spirits at work: the Holy Ghost and a satanic or false spirit. Witchcraft comes from a satanic spirit and opposes God's Spirit.
God expects His people to avoid unholy practices (i.e., divination, observing of times, witchcraft, wizardry, necromancing) that ensnare the world.
Seeking counsel or instruction from spirits or from the deceased is a wicked practice and demands God's righteous judgment.
Many unsaved people practice astrology (i.e., horoscopes) and other unscriptural use of the signs in the heavens. Believers should reject these practices.
Psalm 119 is filled with statements promoting the necessity of the word of God. Seven times in this psalm we find a statement declaring the writer’s desire to meditate upon the words of God. Three of these times he states emphatically that he will meditate in God’s statutes or His precepts (Psalm 119:15, 48, 78). Not only was meditating upon God’s words something that the psalmist desired to do in the future, but he had formed this habit long ago (Psalm 119:23, 99). The writer of this psalm, like other successful believers in the past, made it common practice to meditate in the words of God both day and night (Psalm 119:97; Psalm 1:2; Joshua 1:8).