كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(89)
Chapter: How many Ghazawat the Prophet (saws) fought
(89)
باب كَمْ غَزَا النَّبِيُّ صلى الله عليه وسلم
Sahih al-Bukhari 4471

Narrated Abu 'Is-haq:

I asked Zaid bin Al-Arqam, "In how many Ghazawat did you take part in the company of Allah's Apostle?" He replied, "Seventeen." I further asked, "How many Ghazawat did the Prophet (ﷺ) fight?" He replied, "Nineteen."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ رَجَاءٍ، حَدَّثَنَا إِسْرَائِيلُ، عَنْ أَبِي إِسْحَاقَ، قَالَ سَأَلْتُ زَيْدَ بْنَ أَرْقَمَ ـ رضى الله عنه ـ كَمْ غَزَوْتَ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ سَبْعَ عَشْرَةَ‏.‏ قُلْتُ كَمْ غَزَا النَّبِيُّ صلى الله عليه وسلم قَالَ تِسْعَ عَشْرَةَ‏.‏
Reference : Sahih al-Bukhari 4471
In-book reference : Book 64, Hadith 486
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 747
  (deprecated numbering scheme)