Thamud came after ʿAd and inherited their place in the land (7:74). They lived at al-Hijr (15:80), which the commentators explain lies in north-western Arabia, between Madinah and Tabuk. They built palaces on the plains and skilfully carved homes out of the mountains, among gardens, springs, crops and palm trees (7:74; 26:146–149; 89:9).
Allah sent them their brother Salih, a man they had respected and had high hopes for before his call (11:62). He told them: "O my people, worship Allah; you have no god other than Him. He produced you from the earth and settled you in it, so ask His forgiveness and turn to Him in repentance" (11:61). He warned them not to obey the extravagant, who spread corruption in the land and do not set things right (26:151–152).
A few believed, most of them from the weak. The arrogant leaders mocked them and said, "We disbelieve in what you believe in" (7:75–76). Others said Salih was bewitched, only a man like them, and an insolent liar (26:153; 54:24–25). They called him and his followers a bad omen (27:47) and demanded a sign (26:154). Allah says that He guided Thamud, but they preferred blindness to guidance (41:17).
Allah sent a she-camel as a clear sign and a test for them (17:59; 54:27). Salih said: "This is the she-camel of Allah, a sign for you. Leave her to eat in Allah's land and do not touch her with harm, or a painful punishment will seize you" (7:73). The water was shared: she had her day to drink, and they had theirs (26:155; 54:28). The Quran does not describe how the she-camel came to be; the colourful details found in some books are not confirmed.
Instead of honouring the sign, they called their companion, the most wretched of them, and he hamstrung her (54:29; 91:12). The Prophet ﷺ described this man as strong, wicked and well protected among his people (Sahih al-Bukhari 4942). The Quran says "they hamstrung her" (7:77), because the people approved of what he did; afterwards they regretted it, but too late (26:157). They defied their Lord's command and said, "O Salih, bring us what you promise." Salih said: "Enjoy yourselves in your homes for three days. That is a promise that will not be belied" (11:65). In the city were nine men who spread corruption and set nothing right. They swore to attack Salih and his family by night and then deny it to his heir — but Allah also planned, and destroyed them (27:48–51).
Then the punishment came. The Quran describes it as a mighty blast and a violent earthquake (11:67; 7:78), and as a thunderbolt (41:17). They lay lifeless in their homes, as though they had never lived there (11:67–68), like the dry stubble of a fence-builder (54:31). Allah saved Salih and those who believed with him (11:66; 27:53). Salih turned away from them, saying: "O my people, I conveyed to you the message of my Lord and gave you sincere advice, but you do not love sincere advisers" (7:79).
Their carved homes still stand. When the Prophet ﷺ passed al-Hijr on the way to Tabuk, he told his Companions to enter the dwellings of those who wronged themselves only weeping, lest what struck them strike them too, and not to use water from its wells except the well the she-camel used to drink from (authentic hadiths in Sahih al-Bukhari and Sahih Muslim). The Quran does not say where Salih went afterwards or how his life ended; later reports about this are not confirmed.