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 ReferenceSahih Muslim / The Book of Jihad and Expeditions / Hadith: 1814