Riyad as-Salihin, Book 18, Hadith 1672 (In-Book)

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].

وعن معاوية بن الحكم رضي الله عنه قال‏:‏ قلت يا رسول الله إني حديث عهد بجاهلية، وقد جاء الله تعالى بالإسلام، وإن منا رجالا يأتون الكهان‏؟‏ قال‏:‏ ‏"‏فلا تأتهم‏"‏ قلت‏:‏ ومنا رجال يتطيرون‏؟‏ قال‏:‏ ‏"‏ذلك شيء يجدونه في صدورهم، فلا يصدهم‏"‏ قلت‏:‏ ومنا رجال يخطون‏؟‏ قال‏:‏ ‏"‏كان نبي من الأنبياء يخط، فمن وافق خطه، فذاك‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏

sunnah.com