Yahya bin Abi Ishaq (may Allah have mercy on him) narrates from Sayyiduna Anas bin Malik (may Allah be pleased with him): We set out with the Prophet (peace and blessings be upon him) from Madinah to Makkah, and he (peace and blessings be upon him) prayed two rak'ahs each until he returned. I said: "How many days did he stay in Makkah?" He said: "Ten days."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5482