From Sahih Muslim (Hadith 4695):
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: Muslim 4695