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.
لَمَّا مَرَّ النَّبِيُّ ﷺ بِالْحِجْرِ قَالَ لاَ تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ أَنْ يُصِيبَكُمْ مَا أَصَابَهُمْ إِلاَّ أَنْ تَكُونُوا بَاكِينَ ثُمَّ قَنَّعَ رَأْسَهُ وَأَسْرَعَ السَّيْرَ حَتَّى أَجَازَ الْوَادِيَ