Sunnah.com : Book 7, Hadith 61
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
عن ابن عمر رضي الله عنهما أن رسول الله صلى الله عليه وسلم قال لأصحابه -يعني لما وصلوا الحجر: ديار ثمود-: لا تدخلوا علي هؤلاء المعذبين إلا أن تكونوا باكين، فإن لم تكونوا باكين، فلا تدخلوا عليهم، لا يصيبكم ما أصابهم” ((متفق عليه)) وفي رواية قال: لما مر رسول الله صلى الله عليه وسلم بالحجر قال: "لا تدخلوا مساكن الذين ظلموا أنفسهم أن يصيبكم ما أصابهم إلا ان تكونوا باكين" ثم قنع رسول الله صلى الله عليه وسلم رأسه وأسرع السير حتي أجاز الوادي."
Ibn `Umar (May Allah be pleased with them) reported:
When the Messenger of Allah (ﷺ) and his Companions reached Al-Hijr, the dwellings of the Thamud people, he admonished his Companions (saying), "Do not pass by these people who are being tormented, without weeping, lest the punishment should befall you as it had befallen them." [Al-Bukhari and Muslim].
Full reference and source
Sunnah.com : Book 7, Hadith 61 Arabic/English book : Book 7, Hadith 955
View source on Sunnah.com (opens in a new tab)