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].
وفي رواية قال: لما مر رسول الله صلى الله عليه وسلم بالحجر قال: "لا تدخلوا مساكن الذين ظلموا أنفسهم أن يصيبكم ما أصابهم إلا ان تكونوا باكين" ثم قنع رسول الله صلى الله عليه وسلم رأسه وأسرع السير حتي أجاز الوادي.
Reference | : Riyad as-Salihin 955 |
In-book reference | : Book 6, Hadith 62 |