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.
Hadith Referenceصحيح مسلم / كتاب الجهاد والسير / 1814