Language:
كتاب الصلاة
8  
Prayers (Salat)
(53)
Chapter: (What is said about) offering Salat (Prayer) at the places where the earth had sunk down and Allah's punishment had fallen
(53)
باب الصَّلاَةِ فِي مَوَاضِعِ الْخَسْفِ وَالْعَذَابِ
Sahih al-Bukhari 433

Narrated `Abdullah bin `Umar:

Allah's Messenger (ﷺ) said, "Do not enter (the places) of these people where Allah's punishment had fallen unless you do so weeping. If you do not weep, do not enter (the places of these people) because Allah's curse and punishment which fell upon them may fall upon you."

حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ تَدْخُلُوا عَلَى هَؤُلاَءِ الْمُعَذَّبِينَ إِلاَّ أَنْ تَكُونُوا بَاكِينَ، فَإِنْ لَمْ تَكُونُوا بَاكِينَ فَلاَ تَدْخُلُوا عَلَيْهِمْ، لاَ يُصِيبُكُمْ مَا أَصَابَهُمْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 433
In-book reference : Book 8, Hadith 83
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 425
  (deprecated numbering scheme)