It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Quraysh came to a female soothsayer and said to her: "Tell us which of us most closely resembles the one of this station (the Station of Ibrahim)." She said: "If you drag a sheet over this soft ground and then walk upon it, I will tell you." So they dragged the sheet, then the people walked upon it, and she recognised the footprint of Muhammad (peace and blessings be upon him) and said: "This one resembles him the most of all of you." Then after that they remained for twenty years, or close to twenty years, or as long as Allah willed, then he (peace and blessings be upon him) was sent (as a Prophet).
Imam Ahmad (may Allah have mercy on him) narrated it like this.
And Imam Ibn Majah (may Allah have mercy on him) narrated it from Muhammad bin Yahya, from Muhammad bin Yusuf, from Isra'il, with the like of it.
Related hadith on this topic