Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "One of the prophets used to draw lines (that is, he practised the science of lines), so whoever's knowledge agrees with his knowledge, he has knowledge."
Ahmad recorded it, and its narrators are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الطب / 8473