Salaam Alaikum.
The Quran describes a prophet called Salih, who lived in the Thamud tribe. The Thamud did not worship God, and were disobedient. God sent Salih to warn them, then after they ignored him and murdered a she-camel that God sent, He killed them and left only Salih and those who followed him alive.
The story can be found in the following verses.
11:61-68 and 7:73-79 and 15:80-84.
The Quran teaches that Salih lived after Hud, and before Shuaib and Moses and other prophets.
The Quran makes sure to include that the Thamud would carve out homes in the mountains.
7:73, 74
To the Thamud people (We sent) Salih, one of their own brethren: He said: "O my people! worship Allah: ye have no other god but Him. Now hath come unto you a clear (Sign) from your Lord! This she-camel of Allah is a Sign unto you: So leave her to graze in Allah's earth, and let her come to no harm, or ye shall be seized with a grievous punishment.
"And remember how He made you inheritors after the 'Ad people and gave you habitations in the land: ye build for yourselves palaces and castles in (open) plains, and care out homes in the mountains; so bring to remembrance the benefits (ye have received) from Allah, and refrain from evil and mischief on the earth."
The Quran describes a prophet called Salih, who lived in the Thamud tribe. The Thamud did not worship God, and were disobedient. God sent Salih to warn them, then after they ignored him and murdered a she-camel that God sent, He killed them and left only Salih and those who followed him alive.
The story can be found in the following verses.
11:61-68 and 7:73-79 and 15:80-84.
The Quran teaches that Salih lived after Hud, and before Shuaib and Moses and other prophets.
The Quran makes sure to include that the Thamud would carve out homes in the mountains.
7:73, 74
To the Thamud people (We sent) Salih, one of their own brethren: He said: "O my people! worship Allah: ye have no other god but Him. Now hath come unto you a clear (Sign) from your Lord! This she-camel of Allah is a Sign unto you: So leave her to graze in Allah's earth, and let her come to no harm, or ye shall be seized with a grievous punishment.
"And remember how He made you inheritors after the 'Ad people and gave you habitations in the land: ye build for yourselves palaces and castles in (open) plains, and care out homes in the mountains; so bring to remembrance the benefits (ye have received) from Allah, and refrain from evil and mischief on the earth."
15:80-84
And verily, the dwellers of Al-Hijr (the rocky tract) denied the Messengers.
And We gave them Our Signs, but they were averse to them.
And they used to hew out dwellings from the mountains (feeling themselves) secure.
But As-Saihah (torment - awful cry etc.) overtook them in the early morning (of the fourth day of their promised punishment days).
And all that which they used to earn availed them not.
When Muhammad and his men were passing through the valley where the Thamud used to live, he ordered them to not enter the houses "but weepingly", and they quickly rode through the valley.
(5) 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. (Book #042, Hadith #7104)
http://www.searchtruth.com/searchHad...earch_word=all
Muhammad forbade his men to drink the water from the wells of the people there, and only allowed them to drink from where the she-camel used to drink.
(6) Abdullah b. 'Umar reported that the people encamped along with Allah's Messenger (may peace be upon him) in the valley of Hijr, the habitations of thamud, and they quenched their thirst from the wells thereof and kneaded the flour with it. Thereupon Allah's Messenger (may peace be upon him) commanded that the water collected for drinking should be spilt and the flour should be given to the camels and commanded them that the water for drinking should be taken from that well where the she-camel (of Hadrat Salih) used to come. (Book #042, Hadith #7105)
http://www.searchtruth.com/searchHad...earch_word=all
The place is now a UNESCO site, and the pictures of the buildings testify to the accuracy of the Quran's description about the buildings being hewn out from rock.
Al-Hijr Archaeological Site (Madâin Sâlih) - UNESCO World Heritage Centre
However, the buildings are not homes, they were actually tombs. And what is worse, they were not built by the Thamud but by the Nabateans. They were built not before the time of Moses, but during the first century BC and the 1st century AD. During this time, the Nabateans built structures out of rock throughout their Kingdom.
Most of the monuments and inscriptions of the archaeological site of Al-Hijr date from the 1st century BCE and the 1st century CE. But the inscriptions in Lihyanite script and some recently discovered archaeological vestiges are evidence for human settlement as early as the 3rd or 2nd century BCE.
One-third of the tombs, which are amongst the largest, are clearly dated to between 0-75 CE.
The Hedjaz region was integrated into the Roman province of Arabia in 106 CE. A monumental Roman epigraph of 175-177 CE was recently discovered at Al- Hijr. The region then formed part of Roman history, and then Byzantine history, until the 7th century. In 356, the city of Hegra is again mentioned, as being led by a mayor of local origin, but it seems to have been very modest in size at that time.
Al-Hijr Archaeological Site (Madâin Sâlih) - UNESCO World Heritage Centre
2) The Nabataean city of Hegra or Al-Hijr was formed
around a central residential zone and its oasis. The
sandstone outcrops at various degrees of proximity
offered outstanding possibilities for rock-cut necropoles
or spaces, forming a remarkable site for the expression of
Nabataean monumental architecture.
http://whc.unesco.org/archive/advisory_body_evaluation/1293.pdf
According to the First International Conference for Urban Heritage in the Islamic countries, Al Hijr was settled by the Thamud and other people groups before the Nabateans, but the Nabateans were the only ones who built a city... they carved tombs out of rocks. There have been remains of prehistoric people discovered in some of the mountains as well as petroglyphs. The Lihyanites, Thamud and Minaites left inscriptions... however it was the Nabateans who carved buildings out of rock. They settled in the area around the 1st century BC and built a city.
Al-Hijr lies in northwest Saudi Arabia, between the cities of Medina and Tabuk, 22 kilometres north of the city of al-Ula. Remains of human occupation in the region go back to ancient times. The area has been a significant focus of human settlement over a long period, due to the abundance of factors supporting an early shift to a sedentary way of life. These include fertile land, the presence of sources of water and a strategic position with respect to the great centres of civilization in the ancient Near East. Prehistoric remains have been recorded at the top of some of the mountains which surround the site of Madain Salih. Moreover, many rock faces in the area are covered with petroglyphs, some of which are prehistoric.
According to several passages in the Quran, the site was already inhabited in the third millennium BC by the Thamudic tribes. Lihyanite, Minaic and Thamudic inscriptions which have been found on the site, are evidence for an occupation in the first millennium BC.
The Nabataeans probably settled in Madain Salih in the first century BC and were politically independent at least until the beginning of the second century AD.
They are the only inhabitants of the site who left behind them the remains of a real city. The part of the city in which the people were living was surrounded by various necropolises, which contained monumental rock-cut tombs as well as ordinary pit tombs, while a specific area was devoted to sanctuaries. Water was provided by a dense network of wells.
During the Islamic period, al-Hijr was an important stop on the Syrian pilgrimage road. A citadel and a large reservoir were built for the pilgrims convenience. Finally, at the beginning of the 20th century, a railway station was constructed at Madain Salih on the so-called Hejaz railway, which linked Turkey to the city of Madina, also crossing Syria.
First International Conference For Urban Heritage In The Islamic Countries
The buildings that Muhammad and his men came across were not built by the Thamud before the time of Moses, but by the Nabateans who built it between the 1st century BC and 1st century AD. *
The Quran's claim that the buildings carved out of rock were made by the Thamud during the time of Salih is false.
*They were also tombs, not houses as Muhammad and the author of the Quran evidently believed
And verily, the dwellers of Al-Hijr (the rocky tract) denied the Messengers.
And We gave them Our Signs, but they were averse to them.
And they used to hew out dwellings from the mountains (feeling themselves) secure.
But As-Saihah (torment - awful cry etc.) overtook them in the early morning (of the fourth day of their promised punishment days).
And all that which they used to earn availed them not.
When Muhammad and his men were passing through the valley where the Thamud used to live, he ordered them to not enter the houses "but weepingly", and they quickly rode through the valley.
(5) 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. (Book #042, Hadith #7104)
http://www.searchtruth.com/searchHad...earch_word=all
Muhammad forbade his men to drink the water from the wells of the people there, and only allowed them to drink from where the she-camel used to drink.
(6) Abdullah b. 'Umar reported that the people encamped along with Allah's Messenger (may peace be upon him) in the valley of Hijr, the habitations of thamud, and they quenched their thirst from the wells thereof and kneaded the flour with it. Thereupon Allah's Messenger (may peace be upon him) commanded that the water collected for drinking should be spilt and the flour should be given to the camels and commanded them that the water for drinking should be taken from that well where the she-camel (of Hadrat Salih) used to come. (Book #042, Hadith #7105)
http://www.searchtruth.com/searchHad...earch_word=all
The place is now a UNESCO site, and the pictures of the buildings testify to the accuracy of the Quran's description about the buildings being hewn out from rock.

Al-Hijr Archaeological Site (Madâin Sâlih) - UNESCO World Heritage Centre
However, the buildings are not homes, they were actually tombs. And what is worse, they were not built by the Thamud but by the Nabateans. They were built not before the time of Moses, but during the first century BC and the 1st century AD. During this time, the Nabateans built structures out of rock throughout their Kingdom.
Most of the monuments and inscriptions of the archaeological site of Al-Hijr date from the 1st century BCE and the 1st century CE. But the inscriptions in Lihyanite script and some recently discovered archaeological vestiges are evidence for human settlement as early as the 3rd or 2nd century BCE.
One-third of the tombs, which are amongst the largest, are clearly dated to between 0-75 CE.
The Hedjaz region was integrated into the Roman province of Arabia in 106 CE. A monumental Roman epigraph of 175-177 CE was recently discovered at Al- Hijr. The region then formed part of Roman history, and then Byzantine history, until the 7th century. In 356, the city of Hegra is again mentioned, as being led by a mayor of local origin, but it seems to have been very modest in size at that time.
Al-Hijr Archaeological Site (Madâin Sâlih) - UNESCO World Heritage Centre
2) The Nabataean city of Hegra or Al-Hijr was formed
around a central residential zone and its oasis. The
sandstone outcrops at various degrees of proximity
offered outstanding possibilities for rock-cut necropoles
or spaces, forming a remarkable site for the expression of
Nabataean monumental architecture.
http://whc.unesco.org/archive/advisory_body_evaluation/1293.pdf
According to the First International Conference for Urban Heritage in the Islamic countries, Al Hijr was settled by the Thamud and other people groups before the Nabateans, but the Nabateans were the only ones who built a city... they carved tombs out of rocks. There have been remains of prehistoric people discovered in some of the mountains as well as petroglyphs. The Lihyanites, Thamud and Minaites left inscriptions... however it was the Nabateans who carved buildings out of rock. They settled in the area around the 1st century BC and built a city.

Al-Hijr lies in northwest Saudi Arabia, between the cities of Medina and Tabuk, 22 kilometres north of the city of al-Ula. Remains of human occupation in the region go back to ancient times. The area has been a significant focus of human settlement over a long period, due to the abundance of factors supporting an early shift to a sedentary way of life. These include fertile land, the presence of sources of water and a strategic position with respect to the great centres of civilization in the ancient Near East. Prehistoric remains have been recorded at the top of some of the mountains which surround the site of Madain Salih. Moreover, many rock faces in the area are covered with petroglyphs, some of which are prehistoric.
According to several passages in the Quran, the site was already inhabited in the third millennium BC by the Thamudic tribes. Lihyanite, Minaic and Thamudic inscriptions which have been found on the site, are evidence for an occupation in the first millennium BC.
The Nabataeans probably settled in Madain Salih in the first century BC and were politically independent at least until the beginning of the second century AD.
They are the only inhabitants of the site who left behind them the remains of a real city. The part of the city in which the people were living was surrounded by various necropolises, which contained monumental rock-cut tombs as well as ordinary pit tombs, while a specific area was devoted to sanctuaries. Water was provided by a dense network of wells.
During the Islamic period, al-Hijr was an important stop on the Syrian pilgrimage road. A citadel and a large reservoir were built for the pilgrims convenience. Finally, at the beginning of the 20th century, a railway station was constructed at Madain Salih on the so-called Hejaz railway, which linked Turkey to the city of Madina, also crossing Syria.
First International Conference For Urban Heritage In The Islamic Countries
The buildings that Muhammad and his men came across were not built by the Thamud before the time of Moses, but by the Nabateans who built it between the 1st century BC and 1st century AD. *
The Quran's claim that the buildings carved out of rock were made by the Thamud during the time of Salih is false.
*They were also tombs, not houses as Muhammad and the author of the Quran evidently believed