Anas bin Malik (RA) reported: We went out from Madinah to Makkah with the Messenger of Allah (ﷺ) and he prayed two rak'ahs at each time of prayer till we returned to Madinah. I said: For how long did he stay in Makkah? He said: (For) ten (days).
Hadith ReferenceSahih Muslim / The Book of Prayer - Travellers / Hadith: 693