From Sahih Bukhari (Hadith 433):
Narrated `Abdullah bin `Umar:Allah's Messenger (ﷺ) said, "Do not enter (the places) of these people where Allah's punishment had fallen unless you do so weeping. If you do not weep, do not enter (the places of these people) because Allah's curse and punishment which fell upon them may fall upon you
Reference: Bukhari 433