He who visits a diviner ('Arraf) and asks him about anything, his prayers extending to forty nights will not be accepted.

Sahih Muslim Book 39, Hadith 173