Abu Ishaq narrates from Anas bin Malik (may Allah be pleased with him), who said: We set out with the Prophet (peace and blessings be upon him) from Madinah towards Makkah, and he (peace and blessings be upon him) kept praying two rak'ahs at a time until the return from Makkah to Madinah. We said: How long did you stay in Makkah? He said: Ten days.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5389