Allah destroyed and finished them before they could attack Prophet Salih.
(And there were in the city nine ˹elite˺ men who spread corruption in the land, never doing what is right. They vowed, “Let us swear by Allah that we will take him and his family down by night. Then we will certainly say to his ˹closest˺ heirs, ‘We did not witness the murder of his family. We are definitely telling the truth.’” And ˹so˺ they made a plan, but We too made a plan, while they were unaware. See then what the consequences of their plan were: We ˹utterly˺ destroyed them and their people all together. (An-Naml 27:48-51).