Jabir bin Abdullah reported,

When the Messenger of Allah ﷺ passed by al-Hijr, he said, "Do not ask for miraculous signs. The people of Salih asked for them, and the she-camel used to come in through this pass and go out through that pass. They defied the command of their Lord and hamstrung her. She would drink their water one day, and they would drink her milk the next. They hamstrung her, and a mighty cry seized them. Allah عز وجل destroyed every one of them under the canopy of the sky, except for one man who was within the sacred precinct of Allah عز وجل."Someone asked, "Who was he, Messenger of Allah?"He replied, "He was Abu Righal. When he left the sacred precinct, what struck his people struck him as well."

Azami 8365

Sahih

عن جابر قال

لما مر رسول الله ﷺ بالحجر قال: لا تسألوا الآيات وقد سألها قوم صالح فكانت ترد من هذا الفج وتصدر من هذا الفج فعتوا عن أمر ربهم فعقروها فكانت تشرب ماءهم يوما ويشربون لبنها يوما فعقروها فأخذتهم صيحة أهمد الله عز وجل من تحت أديم السماء منهم إلا رجلا واحدا كان في حرم الله عز وجل قيل: من هو يا رسول الله؟ قال: هو أبو رغال فلما خرج من الحرم، أصابه ما أصاب قومه.

الأعظمي 8365صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
News of Adam عليه السلام
Section
People of Thamud being struck by the cry from the sky
Numbering
Jami al-Kamil 8365 (2nd edition)
Azami 8365