The Prophet ﷺ fought nineteen Ghazwas and performed only one Hajj after he migrated (to Medina), and did not perform another Hajj after it, and that was Hajj-ul-Wadaʿ,' Abu 'Is-haq said, "He performed when he was in Mecca."
أَنَّ النَّبِيَّ ﷺ غَزَا تِسْعَ عَشْرَةَ غَزْوَةً وَأَنَّهُ حَجَّ بَعْدَ مَا هَاجَرَ حَجَّةً وَاحِدَةً لَمْ يَحُجَّ بَعْدَهَا حَجَّةَ الْوَدَاعِ قَالَ أَبُو إِسْحَاقَ وَبِمَكَّةَ أُخْرَى