Anas bin Malik reported,

We set out with the Messenger of Allah ﷺ from Medina to Mecca, and he kept praying two rakahs until we returned to Medina.We asked, "Did you stay there for any length of time?"He replied, "We stayed there ten days."

Abu Dawud 1233

Sahih

حدثنا موسى بن إسمعيل ومسلم بن إبراهيم المعنى قالا حدثنا وهيب حدثني يحيى بن أبي إسحق

عن أنس بن مالك قال

خرجنا مع رسول الله ﷺ من المدينة إلى مكة فكان يصلي ركعتين حتى رجعنا إلى المدينة فقلنا هل أقمتم بها شيئا قال أقمنا بها عشرا

أبو داود 1233صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer while traveling
Chapter
When the traveler completes the prayer
Numbering
Darussalam 1233
Abu Dawud 1233