كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(49)
Chapter: The number of campaigns of the Prophet (saws)
(49)
باب عَدَدِ غَزَوَاتِ النَّبِيِّ صلى الله عليه وسلم
Sahih Muslim 1813

It has been reported on the authority of Abu Zubair who heard Jabir b. `Abdullah say:

I fought in the company of the Messenger of Allah (ﷺ) nineteen battles. Jabir said: I did not participate in the Battle of Badr and the Battle of Uhud. My father prevented me (from participating in these battles as my age was tender). After `Abdullah (my father) was killed on the Day of Uhud, I never lagged behind the Messenger of Allah (ﷺ) and joined every battle (he fought).
حَدَّثَنَا زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا رَوْحُ بْنُ عُبَادَةَ، حَدَّثَنَا زَكَرِيَّاءُ، أَخْبَرَنَا أَبُو الزُّبَيْرِ، أَنَّهُ سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ، يَقُولُ غَزَوْتُ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم تِسْعَ عَشْرَةَ غَزْوَةً - قَالَ جَابِرٌ - لَمْ أَشْهَدْ بَدْرًا وَلاَ أُحُدًا مَنَعَنِي أَبِي فَلَمَّا قُتِلَ عَبْدُ اللَّهِ يَوْمَ أُحُدٍ لَمْ أَتَخَلَّفْ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم فِي غَزْوَةٍ قَطُّ ‏.‏
Reference : Sahih Muslim 1813
In-book reference : Book 32, Hadith 176
USC-MSA web (English) reference : Book 19, Hadith 4466
  (deprecated numbering scheme)