Sayyiduna Mu'awiyah bin al-Hakam al-Sulami (may Allah be pleased with him) relates: I said: "O Messenger of Allah, we had only recently come out of the days of ignorance (Jahiliyyah) when Allah sent guidance with Islam, and among us are men who take evil omens." He (peace and blessings be upon him) said: "That is something they feel in their breasts, so let it not hold them back from anything." I said: "O Messenger of Allah, and among us are men who go to soothsayers." He (peace and blessings be upon him) said: "No, do not go to them." I said: "And among us are men who draw lines (in the sand)." He (peace and blessings be upon him) said: "One of the prophets used to draw lines, so whoever matches his lines, that is fine."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 16990