Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:8710Abū al-Ḥusayn b. Bishrān > Ismāʿīl al-Ṣaffār > Saʿdān b. Naṣr > Wakīʿ > Sufyān > Ibn Jurayj > Mujāhid

[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."  

البيهقي:٨٧١٠وَأَخْبَرَنَا أَبُو الْحُسَيْنِ بْنُ بِشْرَانَ أنبأ إِسْمَاعِيلُ الصَّفَّارُ ثنا سَعْدَانُ بْنُ نَصْرٍ ثنا وَكِيعٌ عَنْ سُفْيَانَ عَنِ ابْنِ جُرَيْجٍ عَنْ مُجَاهِدٍ قَالَ

حَجَّ رَسُولُ اللهِ ﷺ ثَلَاثَ حِجَجٍ حَجَّتَيْنِ وَهُوَ بِمَكَّةَ قَبْلَ الْهِجْرَةِ وَحَجَّةَ الْوَدَاعِ قَالَ الشَّيْخُ وَحَجَّةً قَبْلَ الْهِجْرَةِ يَكُونُ قَبْلَ نُزُولِ فَرْضِ الْحَجِّ فَلَا يُعْتَدُّ بِهِ عَنِ الْفَرْضِ الْمُنْزَلِ بَعْدَهُ وَاللهُ أَعْلَمُ