Sahih Muslim | Book 42 | Hadith Number 7104
Narrated by Ibn Shihab
Ibn Shihab reported, and he had been talking about the stony abodes of Thamud, and he said: Salim b. 'Abdullah reported that 'Abdullah b. Umar said: We were passing along with Allah's Messenger (may peace be upon him) through the habitations of Hijr, and Allah's Messenger (may peace be upon him) said: Do not enter but weepingly the habitations of these persons who committed tyranny among themselves, lest the same calamity should fall upon you as it fell upon them. He then urged his mount to proceed quickly and pass through that valley hurriedly.