Sahih Muslim 2980 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لاَ تَدْخُلُوا عَلَى هَؤُلاَءِ الْقَوْمِ الْمُعَذَّبِينَ إِلاَّ أَنْ تَكُونُوا بَاكِينَ فَإِنْ لَمْ تَكُونُوا بَاكِينَ فَلاَ تَدْخُلُوا عَلَيْهِمْ أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ "
Abdullah b. Umar reported that Allah's Messenger (ﷺ) said in connection with the people of Hijr (Thamud):
Do not enter but weepingly (the habitations) of these people who had been punished by (Allah), and in case you do not feel inclined to weep, then do not enter (these habitations) that you may not meet the same calamity as had fallen to their lot.
Full reference and source
Sahih Muslim 2980 a In-book : Book 55, Hadith 47 USC-MSA web (English) : Book 42, Hadith 7103 (deprecated)
View source on Sunnah.com (opens in a new tab)