Bukhari :: Book 4 :: Volume 55 :: Hadith 564

Narrated Ibn 'Umar:

Allah's Apostle 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."

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star