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:9835Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbūsaʿīd b. Abū ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Aḥmad b. ʿAbd al-Jabbār > Yūnus b. Bukayr > Saʿīd b. Maysarah al-Bakrī > Anas b. Mālik

[Machine] The Messenger of Allah, ﷺ , said: "The location of the House (Kaaba) during the time of Adam was a span or more in knowledge, so the angels would make Hajj (pilgrimage) to it before Adam. Then Adam made Hajj and the angels welcomed him, and they said, 'O Adam, where did you come from?' He said, 'I made Hajj to the House.' They said, 'The angels had already made Hajj to it before you.'"  

البيهقي:٩٨٣٥أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُوسَعِيدِ بْنُ أَبِي عَمْرٍو قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أَحْمَدُ بْنُ عَبْدِ الْجَبَّارِ ثنا يُونُسُ بْنُ بُكَيْرٍ عَنْ سَعِيدِ بْنِ مَيْسَرَةَ الْبَكْرِيِّ حَدَّثَنِي أَنَسُ بْنُ مَالِكٍ

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


See similar narrations below:

Collected by Suyūṭī
suyuti:16570a
Request/Fix translation

  

السيوطي:١٦٥٧٠a

"كَانَ مَوْضِعُ الْبَيتِ في زَمَنِ آدَمَ شِبْرًا أوْ أَكْثَرَ عَلمًا فَكَانَتِ الْمَلائكَةُ تَحُجُّه قَبْلَ آدَمَ فاسْتَقْبَلَتْه الْمَلائِكَةُ، فَقَالُوا: يَا آدَمُ مِنْ أينَ جئْتَ؟ قَال: حَجَجْتُ الْبَيتَ، فَقَالُوا: قَدْ حَجَّتْه الْمَلائِكة قَبْلَكَ".  

[ق] البيهقى في السنن عن أنس