Sahih Bukhari Volume 4, Book 55, Hadith Number 563.

Narated By ‘Abdullah bin ‘Umar : When the Prophet passed by (a place called) Al Hijr, he said, “Do not enter the house of those who were unjust to themselves, unless (you enter) weeping, lest you should suffer the same punishment as was inflicted upon them.” After that he covered his face with his sheet cloth while he was on the camel-saddle.