(35) باب تَحْرِيمِ الْكِهَانَةِ وَإِتْيَانِ الْكُهَّانِ
Safiyya reported from some of the wives of Allah's Apostle (ﷺ) Allah's Apostle (ﷺ) having said:
He who visits a diviner ('Arraf) and asks him about anything, his prayers extending to forty nights will not be accepted.
Reference: Sahih Muslim 2230
In-book reference: Book 39, Hadith 173
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5540