Sahih al-Bukhari 3381
Sahih al-Bukhari · Book 60: Prophets · The Statement of Allah Taa'la: "And to Thamud (people, We sent) their brother Salih..."
Narrated Ibn `Umar:
حَدَّثَنِي عَبْدُ اللَّهِ ، حَدَّثَنَا وَهْبٌ ، حَدَّثَنَا أَبِي ، سَمِعْتُ يُونُسَ ، عَنِ الزُّهْرِيِّ ، عَنْ سَالِمٍ ، أَنَّ ابْنَ عُمَرَ ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ تَدْخُلُوا مَسَاكِنَ الَّذِينَ ظَلَمُوا أَنْفُسَهُمْ إِلاَّ أَنْ تَكُونُوا بَاكِينَ، أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ " .
Allah's Messenger (ﷺ) 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."