(49) باب عَدَدِ غَزَوَاتِ النَّبِيِّ صلى الله عليه وسلم
It has been narrated on the authority of Buraida (who heard the tradition from his father) that the Messenger of Allah (ﷺ) conducted nineteen military campaigns and he (actually) fought in eight of them.
Reference: Sahih Muslim 1814 a
In-book reference: Book 32, Hadith 177
USC-MSA web (English) reference(deprecated numbering scheme): Book 19, Hadith 4467
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.