Safiya bint Abu Ubayd reported,

One of the wives of the Prophet ﷺ reported that the Prophet ﷺ said, "Whoever goes to a fortune-teller and asks him about something, his prayer will not be accepted for forty nights."

Azami 11522

Sahih

عن صفية

عن بعض أزواج النبي ﷺ، عن النبي ﷺ قال: من أتى عرافا فسأله عن شيء لم تقبل له صلاة أربعين ليلة.

الأعظمي 11522صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Ruqya
Chapter
Comprehensive and general supplications
Section
Prohibition of visiting fortune-tellers
Numbering
Jami al-Kamil 11522 (2nd edition)
Azami 11522