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

Narrated Ibn `Abbas:

The Prophet (ﷺ) stayed in Mecca for 19 days during which he prayed 2 rak`at in each prayer.

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