6:123
وَكَذَٰلِكَ جَعَلْنَا فِى كُلِّ قَرْيَةٍ أَكَٰبِرَ مُجْرِمِيهَا لِيَمْكُرُوا۟ فِيهَا ۖ وَمَا يَمْكُرُونَ إِلَّا بِأَنفُسِهِمْ وَمَا يَشْعُرُونَ
And thus We have placed within every city the greatest of its criminals to conspire therein. But they conspire not except against themselves, and they perceive [it] not.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
Evil Plots of the Leaders of the Criminals and their Subsequent Demise
Allah says: Just as We appointed chiefs and leaders for the criminals who call to disbelief, hinder from the path of Allah, and oppose and defy you in your town, O Muhammad. Such was also the case with the Messengers before you, who were tested with the same. But the good end was always theirs.' Allah said in other Ayat,
وَكَذَلِكَ جَعَلْنَا لِكُلِّ نَبِىٍّ عَدُوّاً مِّنَ الْمُجْرِمِينَ
(Thus have We made for every Prophet an enemy among the criminals.) 25:31 Allah said,
وَإِذَآ أَرَدْنَآ أَن نُّهْلِكَ قَرْيَةً أَمَرْنَا مُتْرَفِيهَا فَفَسَقُواْ فِيهَا
(And when We decide to destroy a town, We send a definite order to those among them who lead a life of luxury, and they transgress therein.) 17:16 meaning, We command them to obey Us, but they defy the command and as a consequence, We destroy them. It was also said that, "We send a definite order", in the last Ayah means, "We decree for them," as Allah stated here