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.
غَزَا رَسُولُ اللَّهِ ﷺ تِسْعَ عَشْرَةَ غَزْوَةً قَاتَلَ فِي ثَمَانٍ مِنْهُنَّ وَلَمْ يَقُلْ أَبُو بَكْرٍ مِنْهُنَّ وَقَالَ فِي حَدِيثِهِ حَدَّثَنِي عَبْدُ اللَّهِ بْنُ بُرَيْدَةَ