The Prophet ﷺ led nineteen military expeditions, and after his migration he performed only one pilgrimage, the Farewell Pilgrimage, and did not perform another after it.Abu Ishaq said, "And another one in Mecca."
إن النبي ﷺ غزا تسع عشرة غزوة، وأنه حج بعد ما هاجر حجة واحدة لم يحج بعدها: حجة الوداع. قال أبو إسحاق: وبمكة أخرى.
Bukhari narrated it in the Maghazi (4404), and Muslim narrated it in the Hajj (1254:218) and in Jihad and expeditions (1254:144), both through the route of Zuhayr, who said, Abu Ishaq told us, who said, Zayd bin Arqam told me, who said... and he mentioned it.Regarding his statement, "and in Makkah another one," Ibn Hajar said, "This might give the impression that he only performed Hajj once before the migration, but that is not so. Rather, he performed Hajj many times before he migrated."