Sahih Muslim , Hadith 1815

It has been narrated on the authority of Salama who said: I joined seven military expeditions led by the Messenger of Allah himself, and nine expeditions which he sent out once under Abu Bakr and once under Usama b. Zaid.

حَدَّثَنَا مُحَمَّدُ بْنُ عَبَّادٍ، حَدَّثَنَا حَاتِمٌ، - يَعْنِي ابْنَ إِسْمَاعِيلَ - عَنْ يَزِيدَ، - وَهُوَ ابْنُ أَبِي عُبَيْدٍ قَالَ سَمِعْتُ سَلَمَةَ، يَقُولُ غَزَوْتُ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم سَبْعَ غَزَوَاتٍ وَخَرَجْتُ فِيمَا يَبْعَثُ مِنَ الْبُعُوثِ تِسْعَ غَزَوَاتٍ مَرَّةً عَلَيْنَا أَبُو بَكْرٍ وَمَرَّةً عَلَيْنَا أُسَامَةُ بْنُ زَيْدٍ ‏.‏

sunnah.com

The (foregoing) tradition has also been narrated on the authority of Hatim through the same chain of transmitters with the difference that according to this version both these types of expeditions were seven in number.

وَحَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا حَاتِمٌ، بِهَذَا الإِسْنَادِ ‏.‏ غَيْرَ أَنَّهُ قَالَ فِي كِلْتَيْهِمَا سَبْعَ غَزَوَاتٍ ‏.‏

sunnah.com