كتاب الأمور المنهي عنها
17  
The Book of the Prohibited actions
(303)
Chapter: Prohibition of Consultation with Soothsayers
(303)
- باب النهي عن إتيان الكهان والمنجمين والعراف وأصحاب الرمل والطوارق بالحصى وبالشعير ونحو ذلك
Riyad as-Salihin 1672
Mu'awiyah bin Al-Hakam (May Allah be pleased with him) reported:
I said: "O Messenger of Allah, I have recently emerged from ignorance and Allah has favoured me with Islam. There are still some men among us who visit the soothsayers to consult them (on matters relating to the future)." He (ﷺ) replied, "Do not visit them." I said: "There are some men who are guided by omens." He replied, "These are the ideas which come up in their minds but you should not be influenced by them (i.e., these things) should not prevent them from pursuing their works." I said: "There are some men who practise divination by drawing lines on the ground." The Messenger of Allah (ﷺ) replied, "There was a Prophet who drew lines, the line which agrees with the line drawn by that Prophet would be correct."

[Muslim].

وعن معاوية بن الحكم رضي الله عنه قال‏:‏ قلت يا رسول الله إني حديث عهد بجاهلية، وقد جاء الله تعالى بالإسلام، وإن منا رجالا يأتون الكهان‏؟‏ قال‏:‏ ‏"‏فلا تأتهم‏"‏ قلت‏:‏ ومنا رجال يتطيرون‏؟‏ قال‏:‏ ‏"‏ذلك شيء يجدونه في صدورهم، فلا يصدهم‏"‏ قلت‏:‏ ومنا رجال يخطون‏؟‏ قال‏:‏ ‏"‏كان نبي من الأنبياء يخط، فمن وافق خطه، فذاك‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 1672
In-book reference : Book 17, Hadith 162