I heard Anas saying, "We traveled with the Prophet (ﷺ) from Medina to Mecca and offered two rak`at (for
every prayer) till we returned to Medina." I said, "Did you stay for a while in Mecca?" He replied,
"We stayed in Mecca for ten days."
Sahih al-Bukhari Book 18, Hadith 2