Scholars of Tafsir and genealogy say that (the tribe of Thamud descended
from) Thamud bin `Athir bin Iram bin Sam bin Nuh, and he is brother of Jadis son
of `Athir, similarly the tribe of Tasm, and they were from the ancient Arabs,
Al-`Aribah, before the time of Ibrahim, Thamud came after `Ad. They dwelled
between the area of the Hijaz (Western Arabia) and Ash-Sham (Greater Syria). The
Messenger of Allah passed by the area and ruins of Thamud when he went to Tabuk
(in northern Arabia) during the ninth year of Hijrah. Imam Ahmad recorded that
Ibn `Umar said, "When the Messenger of Allah went to the area of Al-Hijr in
Tabuk with the people, he camped near the homes of Thamud, in Al-Hijr and the
people brought water from the wells that Thamud used before. They used that
water to make dough and placed the pots (on fire) for cooking. However, the
Prophet commanded them to spill the contents of the pots and to give the dough
to their camels. He then marched forth with them from that area to another area,
near the well that the camel (as will follow) used to drink from. He forbade the
Companions from entering the area where people were tormented, saying,
«إِنِّي أَخْشَى أَنْ
يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ فَلَا تَدْخُلُوا عَلَيْهِم»
(I fear that what befell them might befall you as well. Therefore, do not
enter on them.)'' Ahmad narrated that `Abdullah bin `Umar said that the
Messenger of Allah said while in the Hijr area,
«لَا تَدْخُلُوا
عَلَى هؤُلَاءِ الْمُعَذَّبِينَ إِلَّا أَنْ تَكُونُوا بَاكِينَ فَإِنْ لَمْ
تَكُونُوا بَاكِينَ فَلَا تَدْخُلُوا عَلَيْهِمْ أَنْ يُصِيبَكُمْ مِثْلَ مَا
أَصَابَهُم»
(Do not enter on these who were tormented, unless you do so while crying. If
you are not crying, then do not enter on them, so that what befell them does not
befall you, as well.) The basis of this Hadith is mentioned in Two Sahihs.