27-Surah An-Naml (The Ants ) 50
And they planned a plan, and We planned a plan, while they perceived not.
وَمَكَرُوا مَكْرًا وَمَكَرْنَا مَكْرًا وَهُمْ لَا يَشْعُرُونَ
Quran's Tafhim ( explanation)
*65) That is, "Before they could make the night attack on the Prophet Salih at the appointed time Allah sent down His scourge which destroyed their whole nation completely. It appears that they made this plot after hamstringing the shecamel. According to Surah Hud: 65, when they had killed the she-camel, Prophet Salih gave them a notice to enjoy life in their houses for three more days, for then they would be seized by We torment. At this they might have thought that We torment with which Salih threatened them might come or might not, but they must take We vengeance on Salih himself. Therefore, most probably they chose We same night for We attack which Allah had appointed for sending down We torment, and thus were struck down by Allah even before they could touch We Prophet Salih."