Language:
كتاب الحج
25  
Hajj (Pilgrimage)
(47)
Chapter: The Statement of Allah Most High: "Allah has made the Ka’bah—the Sacred House—a sanctuary of well-being for all people, along with the sacred months, the sacrificial animals, and the ˹offerings decorated with˺ garlands. All this so you may know that Allah knows whatever is in the heavens and whatever is on the earth, and that He has ˹perfect˺ knowledge of everything."
(47)
بَابُ قَوْلِ اللَّهِ تَعَالَى: {جَعَلَ اللَّهُ الْكَعْبَةَ الْبَيْتَ الْحَرَامَ قِيَامًا لِلنَّاسِ وَالشَّهْرَ الْحَرَامَ وَالْهَدْيَ وَالْقَلاَئِدَ ذَلِكَ لِتَعْلَمُوا أَنَّ اللَّهَ يَعْلَمُ مَا فِي السَّمَوَاتِ وَمَا فِي الأَرْضِ وَأَنَّ اللَّهَ بِكُلِّ شَيْءٍ عَلِيمٌ}
Sahih al-Bukhari 1593

Narrated Abu Sa`id Al-Khudri:

The Prophet (ﷺ) said "The people will continue performing the Hajj and `Umra to the Ka`ba even after the appearance of Gog and Magog." Narrated Shu`ba extra: The Hour (Day of Judgment) will not be established till the Hajj (to the Ka`ba) is abandoned.

حَدَّثَنَا أَحْمَدُ، حَدَّثَنَا أَبِي، حَدَّثَنَا إِبْرَاهِيمُ، عَنِ الْحَجَّاجِ بْنِ حَجَّاجٍ، عَنْ قَتَادَةَ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي عُتْبَةَ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ لَيُحَجَّنَّ الْبَيْتُ وَلَيُعْتَمَرَنَّ بَعْدَ خُرُوجِ يَأْجُوجَ وَمَأْجُوجَ ‏"‏‏.‏ تَابَعَهُ أَبَانُ وَعِمْرَانُ عَنْ قَتَادَةَ‏.‏ وَقَالَ عَبْدُ الرَّحْمَنِ عَنْ شُعْبَةَ قَالَ ‏"‏ لاَ تَقُومُ السَّاعَةُ حَتَّى لاَ يُحَجَّ الْبَيْتُ ‏"‏‏.‏ وَالأَوَّلُ أَكْثَرُ، سَمِعَ قَتَادَةُ عَبْدَ اللَّهِ وَعَبْدُ اللَّهِ أَبَا سَعِيدٍ‏.‏
Reference : Sahih al-Bukhari 1593
In-book reference : Book 25, Hadith 79
USC-MSA web (English) reference : Vol. 2, Book 26, Hadith 663
  (deprecated numbering scheme)