[Machine] The Messenger of Allah ﷺ performed three Hajj pilgrimages: two while he was in Makkah before the migration, and one was the Farewell Hajj. The scholar said, "The Hajj before the migration is performed before the obligatory Hajj is revealed, so it cannot be considered as a replacement for the obligatory Hajj that is revealed after it. And Allah knows best."
حَجَّ رَسُولُ اللهِ ﷺ ثَلَاثَ حِجَجٍ حَجَّتَيْنِ وَهُوَ بِمَكَّةَ قَبْلَ الْهِجْرَةِ وَحَجَّةَ الْوَدَاعِ قَالَ الشَّيْخُ وَحَجَّةً قَبْلَ الْهِجْرَةِ يَكُونُ قَبْلَ نُزُولِ فَرْضِ الْحَجِّ فَلَا يُعْتَدُّ بِهِ عَنِ الْفَرْضِ الْمُنْزَلِ بَعْدَهُ وَاللهُ أَعْلَمُ