كتاب التفسير
65
Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh))
(2)
The Statement of Allah: "And verily, the dwellers of AI-Hijr (Rocky Tract, i.e., Thamud people) denied the Messengers." (V.15:80)
(2)
Sahih al-Bukhari 4702

Narrated `Abdullah bin `Umar:

(While we were going for the Battle of Tabuk and when we reached the places of the dwellers of Al- Hijr), Allah's Messenger (ﷺ) said about the dwellers of Al-Hijr (to us). "Do not enter (the dwelling places) of these people unless you enter weeping, but if you weep not, then do not enter upon them, lest you be afflicted with what they were afflicted with."

حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، حَدَّثَنَا مَعْنٌ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ لأَصْحَابِ الْحِجْرِ ‏ "‏ لاَ تَدْخُلُوا عَلَى هَؤُلاَءِ الْقَوْمِ إِلاَّ أَنْ تَكُونُوا بَاكِينَ فَإِنْ لَمْ تَكُونُوا بَاكِينَ فَلاَ تَدْخُلُوا عَلَيْهِمْ أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 4702
In-book reference : Book 65, Hadith 224
USC-MSA web (English) reference : Vol. 6, Book 60, Hadith 225
  (deprecated numbering scheme)