Hadithcore
Sahih al-Bukhari, 1593
sahih

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.

حَدَّثَنَا أَحْمَدُ، حَدَّثَنَا أَبِي، حَدَّثَنَا إِبْرَاهِيمُ، عَنِ الْحَجَّاجِ بْنِ حَجَّاجٍ، عَنْ قَتَادَةَ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي عُتْبَةَ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ لَيُحَجَّنَّ الْبَيْتُ وَلَيُعْتَمَرَنَّ بَعْدَ خُرُوجِ يَأْجُوجَ وَمَأْجُوجَ ‏"‏‏.‏ تَابَعَهُ أَبَانُ وَعِمْرَانُ عَنْ قَتَادَةَ‏.‏ وَقَالَ عَبْدُ الرَّحْمَنِ عَنْ شُعْبَةَ قَالَ ‏"‏ لاَ تَقُومُ السَّاعَةُ حَتَّى لاَ يُحَجَّ الْبَيْتُ ‏"‏‏.‏ وَالأَوَّلُ أَكْثَرُ، سَمِعَ قَتَادَةُ عَبْدَ اللَّهِ وَعَبْدُ اللَّهِ أَبَا سَعِيدٍ‏.‏

References2 variants
In-Book Reference
Book 25, Hadith 79
USC-MSA web (English) reference
Vol. 2, Book 26, Hadith 663 (deprecated numbering scheme)
Sharh · explanationclick to expand
Gog and Magog are those who Dhu al-Qarnayn constructed a dam as a barrier to keep them away from people, as mentioned in the Statement of Allah, the Most Exalted, {But assist me with resources, I will build a barrier between you and them.} (Quran 18: 95). Their appearance from behind this barrier or dam is one of the major signs of the Hour. In this hadeeth, the Prophet ﷺprophesises that Muslims in the end of time will continue to perform Hajj and ‘Umrah after the demise of Gog and Magog and after their corruption on earth. It is reported in another hadeeth that the Prophet ﷺsaid, “The Hour will not be established until the Hajj (pilgrimage) of the House stops.” That is to say, the Day of Judgment will not be established while there is on earth a person who believes in Allah Almighty and Majestic, which explains the reason why Hajj will cease to exist. It is reported on the authority of Anas ibn Maalik (may Allah be pleased with him) that the Messenger of Allah ﷺsaid, “The Last Hour will not be established until no one on earth will utter the word “Allah”.” It is possible to reconcile between both hadeeths by saying that it is not necessary that performing Hajj after the advent of Gog and Magog means that it will constantly continue until the establishment of the Last Hour. Rather, people will stop performing Hajj at a time just before the Last Hour. From the benefits that we can conclude from this hadeeth is learning about the prophesy of the Prophet ﷺconcerning some of the matters of the unseen, which is one of the signs of his prophethood..