It is narrated from Muhammad bin Ka'b Al-Qurazi that when Adam (peace be upon him) performed Hajj, the angels met him and said: O Adam (peace be upon him), your Hajj has been accepted. We performed Hajj two thousand years before you.
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 752
Hadith Takhrijاسناده صحیح، اخرجه البيهقي : 5 / 177 ۔ وفي المعرفة السنن والآثار له (3126)۔