Sayyiduna Jabir bin Usamah al-Juhani (may Allah be pleased with him) said: I went to the market and found the Prophet (peace and blessings be upon him) with his Companions. I asked them: Where is he (peace and blessings be upon him) going? They said: He (peace and blessings be upon him) is going to mark out a mosque for your people. So I went back and found my people standing, and I asked: What is the matter with you? They said: The Messenger of Allah (peace and blessings be upon him) marked out a mosque for us with his foot and planted a piece of wood in the direction of the qiblah.
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 2063