All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
Prophet Muhammad performed only one Hajj after his migration to Madeenah and it was in the tenth year of Hijrah. The scholars hold various opinions concerning whether he ever performed Hajj before his migration to Madeenah. Some of them assume that he performed Hajj twice before his migration, according to the Hadeeth of Jaabir who said that the Prophet performed three Hajjs, two before migration and one after it, i.e. the Farewell Hajj. He performed ‘Umrah four times.
Anas relates that the Prophet performed four 'Umrahs, all in the month of Thul-Qi'dah, except the one which he performed with his Hajj (i.e. in Thul-Hijjah). He performed one 'Umrah from Hudaybiyyah in Thul-Qi'dah, another 'Umrah in the following year in Thul Qi'dah, a third from Al-Jiranah where he distributed the war booty of Hunayn in Thul Qi'dah, and the fourth 'Umrah he performed was with his Hajj.
Imaam Ibn Al-Qayyim said, “All the four Umrahs were in the month of Thul-Qi'dah. The first was at the occasion of pledge of Hudaybiyyah in the sixth year. The second was the next year of Hudaybiyyah, the third was with his Farewell Hajj and the fourth was when he performed from Al-Jiranah when he was returning from Hunayn.” [Za'd-Al-Ma'aad].
Allaah Knows best.