Sahih Muslim Book 42, Hadith Number 7103.

Chapter : Do not enter but Weepingly the Habitations of those who Committed Atrocities upon themselves.

‘Abdullah b. Umar reported that Allah’s Messenger (may peace be upon him) said in connection with the people of Hijr (Thamud): Do not enter but weepingly (the habitations) of these people who bad been punished by (Allah), and in case you do not feel inclined to weep, then do not enter (these habitations) that you may not meet the same calamity as had fallen to their lot.