Sayyiduna Sahl bin Harithah al-Ansari (may Allah be pleased with him) says: Some people complained to the Prophet (peace and blessings be upon him) that they had settled in a house while they were many in number, and then they perished. He (peace and blessings be upon him) said: "Why did you not leave it, since it is undesirable?"
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 5618