This may be one you remember as written by St. Paul, but it does not specifically name those in occults. I would think it embraces sins of an immoral nature, whatever they be.
1 Cor. 5:10 I mean not with the fornicators of this world, or with the covetous, or the extortioners, or the servers of idols: otherwise you must needs go out of this world.
11 But now I have written to you, not to keep company **if any man that is called a brother **be a fornicator, or covetous, or a server of idols, or a railer, or a drunkard, or an extortioner; with such a one not so much as to eat.
12 For what have I to do to judge them that are without ? Do not you judge them that are within?
13 For them that are without, God will judge. Put away the evil one from among yourselves.
I agree with Thistle, who shared the sentiments of St. Paul, that we do not avoid those who are without … IOW, sinners, for they are lost ones who need compassion and our efforts to bring them into the fold. Paul tells us to avoid those who are known as "brothers’ in the faith if they are immoral. This is not an encouraged practice today, but in pagan cultures where Paul’s new converts were exposed to these practices, it was certainly necessary in order to keep them from danger of relapsing.
What is forbidden by God though under the first commandment, is for any of us to go to fortune tellers or any who are involved in occult practices … for the selfish purpose of knowing our future – and NOT as Paul allows, to bring them the gospel.