I asked Zaid b. Arqam: In how many military expeditions have you participated with Messenger of Allah ﷺ? He said: In seventeen (expeditions). He (Abu Ishaq) said: Zaid b. Arqam reported to me that Messenger of Allah ﷺ had led nineteen expeditions. And he performed Hajj only once after Migration, and that was the Farewell Pilgrimage. Abu Ishaq also said: The second (Hajj) he performed at Mecca (before his Migration to Medina) (Using translation from Muslim 1253b)
عَنْ أَبِي إِسْحَاقَ قَالَسَأَلْتُ زَيْدَ بْنَ أَرْقَمَ كَمْ غَزَوْتَ مَعَ رَسُولِ اللهِ ﷺ؟ قَالَ سَبْعَ عَشْرَةَ قَالَ وَحَدَّثَنِي زَيْدُ بْنُ أَرْقَمَ أَنَّ رَسُولَ اللهِ ﷺ غَزَا تِسْعَ عَشْرَةَ وَأَنَّهُ حَجَّ بَعْدَمَا هَاجَرَ حَجَّةً وَاحِدَةً حَجَّةَ الْوَدَاعِ قَالَ أَبُو إِسْحَاقَ وَبِمَكَّةَ أُخْرَى