The Prophet ﷺ was asked in a hadith, where the narrator said, "I said, 'Some men among us draw lines on the ground for divination.'"He replied, "There was a prophet among the prophets who used to draw lines. Whoever's drawing matches his, that is correct."
عن النبي ﷺ في حديث فيه: قال: قلت: ومنا رجال يخطون قال: كان نبي من الأنبياء يخط فمن وافق خطه فذاك.
Muslim narrated it in the Book of Mosques (33:137) and in the Book of Medicine (121:537) through various routes from Yahya bin Abu Kathir, from Hilal bin Abu Maymuna, from Ata bin Yasar, from Muawiya bin Hakam Sulami, who mentioned it. It is said that this prophet is Idris .