The Prophet (peace and blessings be upon him) said:
"One of the prophets used to draw lines (on the ground), so whoever's (lines) agree with his line, then that is fine."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4462
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم م د ن] عن معاوية بن الحكم. صحيح أبي داود ٨٦٢.