We set out with the Prophet ﷺ from Medina to Mecca, and he prayed two rakahs.He said, I asked Anas, "How long did the Messenger of Allah ﷺ stay in Mecca?"He replied, "Ten days."
حدثنا أحمد بن منيع حدثنا هشيم أخبرنا يحيى بن أبي إسحق الحضرمي حدثنا
خرجنا مع النبي ﷺ من المدينة إلى مكة فصلى ركعتين قال قلت لأنس كم أقام رسول الله ﷺ بمكة قال عشرا
Agreed upon (by Bukhari and Muslim), and Muslim narrated it in the Book of the Prayer of Travelers, Chapter on the Prayer of Travelers and Shortening It, no. 693, from the hadith of Hushaym, and Bukhari, no. 1081, from the hadith of Yahya bin Abu Ishaq with the same content.On this subject there is also a narration from Ibn Abbas [to come, 549] and Jabir [Abu Dawud, no. 1235].The hadith of Ibn Abbas, "He stayed during one of his journeys..." etc, Abu Dawud, no. 1235.As for the report of Ali, I did not find it, and that of Ibn Umar, I did not find it, and that of Saeed bin Musayab, I did not find it.