Prophet Salih was chosen by Allah to guide the tribe of Thamud away from idol worship and towards believing in the One True God. When the elders of the tribe demanded a miracle from Salih to prove he was a prophet, he prayed to Allah and a she-camel emerged from a mountain. Salih warned the tribe not to harm the camel. However, some evildoers killed the camel. Salih gave the tribe three days to repent, but they refused. As punishment, smoldering rocks fell from the sky, destroying the tribe except for Salih and his followers.