"لَمَا مَرَّ رَسولُ الله ﷺ بِالبَحْرِ، قَالَ: لاَ تَدْخُلوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أنفُسَهُم إِلاَّ أَنْ تكُونُوا باكِينَ أَنْ يُصِيْبَكُمْ مِثْلَ الذى أَصَابَهُم، ثُمَّ قَنَع رَسُولُ اللهِ ﷺ رَأسَهُ وأسْرعَ السَّيرَ حَتَّى أَجَازَ الوَادِىَ".
See similar narrations below:
Collected by Bukhārī, Muslim, Aḥmad, Ibn Ḥibbān, Nasāʾī's Kubrá, SuyūṭīWhen the Prophet ﷺ passed by (a place called) Al Hijr, he said, "Do not enter the house of those who were unjust to themselves, unless (you enter) weeping, lest you should suffer the same punishment as was inflicted upon them." After that he covered his face with his sheet cloth while he was on the camel-saddle.
أَنَّ النَّبِيَّ ﷺ لَمَّا مَرَّ بِالْحِجْرِ قَالَ لاَ تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا إِلاَّ أَنْ تَكُونُوا بَاكِينَ أَنْ يُصِيبَكُمْ مَا أَصَابَهُمْ ثُمَّ تَقَنَّعَ بِرِدَائِهِ وَهْوَ عَلَى الرَّحْلِ
Messenger of Allah ﷺ said, "Do not enter the ruined dwellings of those who were unjust to themselves unless (you enter) weeping, lest you should suffer the same punishment as was inflicted upon them."
رَسُولُ اللَّهِ ﷺ لاَ تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ إِلاَّ أَنْ تَكُونُوا بَاكِينَ أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ
When the Prophet ﷺ passed by Al-Hijr, he said, "Do not enter the dwelling places of those people who were unjust to themselves unless you enter in a weeping state lest the same calamity as of theirs should befall you." Then he covered his head and made his speed fast till he crossed the valley.
لَمَّا مَرَّ النَّبِيُّ ﷺ بِالْحِجْرِ قَالَ لاَ تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ أَنْ يُصِيبَكُمْ مَا أَصَابَهُمْ إِلاَّ أَنْ تَكُونُوا بَاكِينَ ثُمَّ قَنَّعَ رَأْسَهُ وَأَسْرَعَ السَّيْرَ حَتَّى أَجَازَ الْوَادِيَ
Salim b. 'Abdullah reported that 'Abdullah b. Umar said: We were passing along with Messenger of Allah ﷺ through the habitations of Hijr, and Messenger of Allah ﷺ said: Do not enter but weepingly the habitations of these persons who committed tyranny among themselves, lest the same calamity should fall upon you as it fell upon them. He then urged his mount to proceed quickly and pass through that valley hurriedly.
مَرَرْنَا مَعَ رَسُولِ اللَّهِ ﷺ عَلَى الْحِجْرِ فَقَالَ لَنَا رَسُولُ اللَّهِ ﷺ لاَ تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ إِلاَّ أَنْ تَكُونُوا بَاكِينَ حَذَرًا أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ ثُمَّ زَجَرَ فَأَسْرَعَ حَتَّى خَلَّفَهَا
Messenger of Allah ﷺ said, "Do not enter the ruined dwellings of those who were unjust to themselves unless (you enter) weeping, lest you should suffer the same punishment as was inflicted upon them." (Using translation from Bukhārī 3381)
قَالَ رَسُولُ اللهِ ﷺ لَا تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ إِلَّا أَنْ تَكُونُوا بَاكِينَ أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ
When the Prophet ﷺ passed by (a place called) Al Hijr, he said, "Do not enter the house of those who were unjust to themselves, unless (you enter) weeping, lest you should suffer the same punishment as was inflicted upon them." After that he covered his face with his sheet cloth while he was on the camel-saddle. (Using translation from Bukhārī 3380)
أَنَّ النَّبِيَّ ﷺ لَمَّا مَرَّ بِالْحِجْرِ قَالَ لَا تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا إِلَّا أَنْ تَكُونُوا بَاكِينَ أَنْ يُصِيبَكُمْ مَا أَصَابَهُمْ وَتَقَنَّعَ بِرِدَائِهِ وَهُوَ عَلَى الرَّحْلِ
ذِكْرُ الزَّجْرِ عَنْ دُخُولِ الْمَرْءِ أَرْضَ ثَمُودَ إِلَّا أَنْ يَكُونَ بَاكِيًا
Salim b. 'Abdullah reported that 'Abdullah b. Umar said: We were passing along with Messenger of Allah ﷺ through the habitations of Hijr, and Messenger of Allah ﷺ said: Do not enter but weepingly the habitations of these persons who committed tyranny among themselves, lest the same calamity should fall upon you as it fell upon them. He then urged his mount to proceed quickly and pass through that valley hurriedly. (Using translation from Muslim 2980b)
مَرَرْنَا مَعَ رَسُولِ اللَّهِ ﷺ بِالْحِجْرِ فَقَالَ لَنَا رَسُولُ اللَّهِ ﷺ «لَا تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ إِلَّا أَنْ تَكُونُوا بَاكِينَ حَذَرًا أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ» ثُمَّ رَحَلَ فَأَسْرَعَ حَتَّى خَلَّفْهَا
When the Prophet ﷺ passed by (a place called) Al Hijr, he said, "Do not enter the house of those who were unjust to themselves, unless (you enter) weeping, lest you should suffer the same punishment as was inflicted upon them." After that he covered his face with his sheet cloth while he was on the camel-saddle. (Using translation from Bukhārī 3380)
أَنَّ النَّبِيَّ ﷺ لَمَّا مَرَّ بِالْحِجْرِ قَالَ «لَا تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ إِلَّا أَنْ تَكُونُوا بَاكِينَ أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ» وَتَقَنَّعَ بِرِدَائِهِ وَهُوَ عَلَى الرَّحْلِ
"لا تَدْخُلُوا مَسَاكِنَ الَّذينَ ظَلَمُوا أنْفُسَهُمْ إِلا أَنْ تَكُونُوا بَاكِينَ خَيرًا أَنْ يُصِيبَكُمْ مَا أَصَابَهُمْ".