We set out with the Messenger of Allah ﷺ from Medina to Mecca, and he prayed two rakahs at a time until we returned.I asked, "How long did he stay in Mecca?"He replied, "Ten days."
حدثنا نصر بن علي الجهضمي حدثنا يزيد بن زريع وعبد الأعلى قالا حدثنا يحيى بن أبي إسحق
خرجنا مع رسول الله ﷺ من المدينة إلى مكة فصلى ركعتين ركعتين حتى رجعنا قلت كم أقام بمكة قال عشرا
Reported by Bukhari, Chapters on Shortening the Prayer, Chapter on What Has Been Said Regarding Shortening the Prayer and How Long One May Stay Before Shortening It, no. 1081, 4297, and Muslim, Prayer of the Traveler, Chapter on the Prayer of the Traveler and Shortening It, no. 693, from the hadith of Yahya bin Abu Ishaq, with this same chain.