Muawiya bin Hakam reported,

I said, "Messenger of Allah, there are things we used to do in the days of ignorance." She mentioned among them, "And among us are Some men who practice divination by drawing lines."He replied, "There was a prophet among the prophets who used to draw lines, so whoever's line matches his, that one is correct."

Azami 11527

Sahih

عن معاوية بن الحكم السلمي قال

قلت: يا رسول الله أمورا كنا نصنعها في الجاهلية فذكر منها: ومنا رجال يخطون قال: كان نبي من الأنبياء يخط فمن وافق خطه فذاك.

الأعظمي 11527صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Ruqya
Chapter
Comprehensive and general supplications
Section
Divination by drawing lines in sand
Numbering
Jami al-Kamil 11527 (2nd edition)
Azami 11527