Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:16611a
Request/Fix translation

  

السيوطي:١٦٦١١a

"كَانَ نَبيٌّ مِن الأَنْبِياءِ يَخُطُّ فمَنْ وافَقَ خَطَّه فَذَاكَ".  

[حم] أحمد [م] مسلم [د] أبو داود [ن] النسائي عن معاوية بن الحكم

See similar narrations below:

Collected by Abū Dāwūd, Suyūṭī
abudawud:3909Musaddad > Yaḥyá > al-Ḥajjāj al-Ṣawwāf > Yaḥyá b. Abū Kathīr > Hilāl b. Abū Maymūnah > ʿAṭāʾ b. Yasār > Muʿāwiyah b. al-Ḥakam al-Sulamī

I said: Messenger of Allah! among us there are men who practice divination by drawing lines. He said: There was a Prophet who drew lines, so if anyone does it as he drew lines, that is right.  

أبو داود:٣٩٠٩حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَحْيَى عَنِ الْحَجَّاجِ الصَّوَّافِ حَدَّثَنِي يَحْيَى بْنُ أَبِي كَثِيرٍ عَنْ هِلاَلِ بْنِ أَبِي مَيْمُونَةَ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ مُعَاوِيَةَ بْنِ الْحَكَمِ السُّلَمِيِّ قَالَ

قُلْتُ يَا رَسُولَ اللَّهِ وَمِنَّا رِجَالٌ يَخُطُّونَ قَالَ كَانَ نَبِيٌّ مِنَ الأَنْبِيَاءِ يَخُطُّ فَمَنْ وَافَقَ خَطَّهُ فَذَاكَ