It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Do not enter the dwellings of those who wronged themselves unless you are weeping, lest the same punishment and affliction that befell them befall you." What is meant by this were the settlements of the people of al-Hijr (the people of Thamud).
Hadith Referenceمسند أبي يعلى الموصلي / مسند عبد الله بن عمر / 5575
Hadith Gradingمحدثین:إسناده صحيح وأخرجه البخاري
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح وأخرجه البخاري . » «قال سعيد بن محمد السناري: صحيح» «أخرجه صحيح البخاري برقم: 423، وأخرجه صحيح مسلم برقم: 5293، وأخرجه مسند أحمد برقم: 4547، 5203، 5320، 5381، 5418، 5613، 5672، 5948، 6176، وأخرجه فتح الباري برقم: 423، وأخرجه المعجم الكبير للطبراني برقم: 13654، وأخرجه صحيح ابن حبان برقم: 6199، وأخرجه شرح مشكل الآثار برقم: 3741، مسند ابویعلیٰ ترقیم الاثری: 5550»