"My father told me: 'We came to Jabir bin ʿAbdullah and asked him about the Hajj of the Prophet ﷺ. He told us: The Messenger of Allah ﷺ stayed in al-Madinah for nine years of Hajj, then it was announced to the people that the Messenger of Allah ﷺ was going to perform Hajj this year. Many people came to al-Madinah, all of them hoping to learn from the Messenger of Allah ﷺ and to do as he did. The Messenger of Allah ﷺ set out when there were five days left of Dhul-Qaʿdah, and we set out with him,: Jabir said; "And the Messenger of Allah was among us; the Qur'an was being revealed to him, and he knew what it meant. Whatever he did based on it (the Qur'an), we did, and we set out with no intention other than Hajj. (Using translation from Nasāʾī 2740)
عَنْ حَجَّةِ النَّبِيِّ ﷺ فَحَدَّثَنَا أَنَّ رَسُولَ اللهِ ﷺ «مَكَثَ بِالْمَدِينَةِ تِسْعَ حِجَجٍ ثُمَّ أُذِّنَ فِي النَّاسِ أَنَّ رَسُولَ اللهِ ﷺ حَاجٌّ هَذَا الْعَامَ فَنَزَلَ الْمَدِينَةَ بَشَرٌ كَثِيرٌ كُلُّهُمْ يَلْتَمِسُ أَنْ يَأْتَمَّ بِرَسُولِ اللهِ ﷺ وَيَفْعَلُ مَا يَفْعَلُ فَخَرَجَ رَسُولُ اللهِ ﷺ لِخَمْسٍ بَقِينَ مِنْ ذِي الْقَعْدَةِ وَخَرَجْنَا مَعَهُ» قَالَ جَابِرٌ وَرَسُولُ اللهِ ﷺ بَيْنَ أَظْهُرِنَا عَلَيْهِ يَنْزِلُ الْقُرْآنُ وَهُوَ يَعْرِفُ تَأْوِيلَهُ وَمَا عَمِلَ بِهِ مِنْ شَيْءٍ عَمِلْنَاهُ فَخَرَجْنَا لَا نَنْوِي إِلَّا الْحَجَّ