“And they devised a plot,” meaning: what they intended for Salih. “And they devised a plot.” Qatada said: It has been mentioned to us that while they were looking at Salih in order to assault him, Allah sent a rock upon them which crushed them.