Riyad as-Salihin #990
The Book of the Prohibited actions
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وعن قبيصة بنت أبي عبيد، عن بعض أزواج النبي صلى الله عليه وسلم، ورضي الله عنها، عن النبي صلى الله عليه وسلم قال:
"من أتي عرافًا فسأله عن شيء، فصدقه، لم تقبل له صلاة أربعين يومًا" ((رواه مسلم)).
Narrated Safiyyah, daughter of Abu 'Ubaid, on the authority of some of the wives of the Prophet (ﷺ) who said, "He who goes to one who claims to tell about matters of the Unseen and believes in him, his Salat (prayers) will not be accepted for forty days.".
Topics
About Riyad as-Salihin
This hadith is #990 from Riyad as-Salihin, in the Book of The Book of the Prohibited actions.