Abdullah bin Umar reported,

The Messenger of Allah ﷺ said to the companions during the expedition at al-Hijr, "Do not enter upon these people who were punished unless you are weeping. If you are not weeping, then do not enter upon them, lest there befall you what befell them."

Azami 14773

Sahih

عن عبد الله بن عمر

أن رسول الله ﷺ قال لأصحاب الحجر: لا تدخلوا على هؤلاء القوم المعذبين إلا أن تكونوا باكين، فإن لم تكونوا باكين فلا تدخلوا عليهم، أن يصيبكم مثل ما أصابهم.

الأعظمي 14773صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of the road, walking, and travel
Section
Etiquette of passing by the dwellings of a punished people
Numbering
Jami al-Kamil 14773 (2nd edition)
Azami 14773