‘Abdullah ibn ‘Umar (may Allah be pleased with him and his father) reported: We passed with the Messenger of Allah (may Allah's peace and blessings be upon him) by Al-Hijr, and the Messenger of Allah (may Allah's peace and blessings be upon him) said to us:
"Do not enter the dwellings of those who have wronged themselves, unless you are weeping, lest what befell them should befall you." Then he urged and hastened, leaving it behind.
Reported by Muslim (No. 2980b), Al-Bukhari (No. 3380, 3381, 4419) and Ahmad (No. 5090, 5447).
When passing by the dwellings of Thamūd, the Prophet (may Allah's peace and blessings be upon him) forbade entering the dwellings of those punished people, who wronged themselves, or visiting them, unless the one entering is weeping and reflecting upon their fate, out of fear that the same punishment that befell them might befall him. Then, he commanded his mount to hasten and passed quickly, leaving the area behind.
Lessons
Reflection on the conditions of those whom Allah Almighty destroyed, being cautious of what they fell into, and being wary of heedlessness in contemplating the verses.
The dwellings of these punished people should not be inhabited after them, nor should they be taken as a place of residence, because a permanent inhabitant cannot remain constantly weeping, and it was forbidden to enter these places except in this state.
An-Nawawi said: It encourages vigilance when passing by the dwellings of the wrongdoers and places of punishment, similar to hastening through the valley of Muhassir, where the companions of the elephant perished. Therefore, one should be vigilant, fearful, weeping, and reflecting on their fate, seeking refuge with Allah from such an end.
The prohibition and warning apply to the dwellings of Thamūd and others like them from all the nations that were afflicted with punishment.
The prohibition of taking such places and areas for tourism, recreation, or similar purposes.
Explanation in Arabic
نهى النبي صلى الله عليه وسلم لمّا مَرَّ بديار ثمود عن دخول ديار المُعذَّبين الذين ظلموا أنفسهم أو إتيانها، إلا أن يكون الداخل باكيًا مُعتبِرًا بهم؛ خشية أن يصيبه مثل ما أصابهم من العذاب، ثم صاح بدابته فأسرع بها حتى تجاوزها.
التفكر في أحوال مَن أهلكهم الله تعالى، والحذر مما وقعوا فيه؛ والحذر من الغفلة عن تدبر الآيات.
ديار هؤلاء المعذبين لا تُسكَن بعدهم، ولا تتخذ وطنًا؛ لأن المقيم المستوطِن لا يمكنه أن يكون باكيًا دائمًا، وقد نُهي عن الدخول إلا بهذه الصفة.
قال النووي: فيه الحث على المراقبة عند المرور بديار الظالمين، ومواضع العذاب، ومثله الإسراع في وادي مُحَسِّر؛ لأن أصحاب الفيل هلكوا هناك، فينبغي للمار في مثل هذه المواضع المراقبة والخوف والبكاء، والاعتبار بهم وبمصارعهم، وأن يستعيذ بالله من ذلك.
النهي والتحذير شامل لمنازل ثمود وغيرهم ممن في معناهم مِن سائر الأمم الذين نزل بهم العذاب.
النهي عن اتخاذ هذه الأماكن وهذه البقاع للسياحة والنزهة ونحو ذلك.
عن ابن عمر رضي الله عنهما أن رسول الله صلى الله عليه وسلم قال لأصحابه -يعني لما وصلوا الحجر: ديار ثمود-: "لا تدخلوا علي هؤلاء المعذبين إلا أن تكونوا باكين، فإن لم تكونوا باكين، فلا تدخلوا عليهم، لا يصيبكم ما…