Answer:
It is narrated from Sayyidah Aisha (may Allah be pleased with her):
She said that some people asked the Messenger of Allah about the soothsayers, and the Messenger of Allah ﷺ said to them:
إنهم ليسوا بشيء. فقالوا: يا رسول الله إنهم يحدثون أحيانا بالشيء يكون حقا؟ فقال رسول الله: تلك الكلمه من الحق يخطفها الجنی فيقرها في أذن وليه قر الدجاجة، فيخلطون فيها أكثر من مائة كذبة
“Indeed, they are nothing. They said: O Messenger of Allah! Sometimes they relate something that turns out to be true? The Prophet ﷺ said: That word is part of the truth, which a jinn snatches away and then pours into the ear of his ally (the soothsayer) like the clucking of a hen. Then they mix more than a hundred lies with it.”
It is also narrated from the Prophet ﷺ that he said:
من اتي عرافا فساله عن شيء لم تقبل له صلاة أربعين ليلة
Whoever comes to a fortune-teller (soothsayer) and asks him about something, his prayer will not be accepted for forty nights.
It is also narrated from him ﷺ:
من أتي كاهنا فصدقه بما يقول فقد برئ مما أنزل على محمد
“Whoever comes to a soothsayer and believes what he says, he has indeed disassociated himself from the Shariah that Allah revealed to Muhammad ﷺ.”
Hafiz Ibn Hajar said that the compilers of the Sunan narrated it and that al-Hakim graded it sahih (authentic).