كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(52)
Chapter: The stay of the Prophet (saws) in Makkah
(52)
باب مَقَامُ النَّبِيِّ صلى الله عليه وسلم بِمَكَّةَ زَمَنَ الْفَتْحِ
Sahih al-Bukhari 4297

Narrated Anas:

We stayed (in Mecca) for ten days along with the Prophet (ﷺ) and used to offer shortened prayers (i.e. journey prayers).

حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا سُفْيَانُ،‏.‏ حَدَّثَنَا قَبِيصَةُ، حَدَّثَنَا سُفْيَانُ، عَنْ يَحْيَى بْنِ أَبِي إِسْحَاقَ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ أَقَمْنَا مَعَ النَّبِيِّ صلى الله عليه وسلم عَشْرًا نَقْصُرُ الصَّلاَةَ‏.‏
Reference : Sahih al-Bukhari 4297
In-book reference : Book 64, Hadith 330
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 591
  (deprecated numbering scheme)