Sure Ar-Ra'd

13:42

وَقَدْ مَكَرَ ٱلَّذِينَ مِن قَبْلِهِمْ فَلِلَّهِ ٱلْمَكْرُ جَمِيعًۭا ۖ يَعْلَمُ مَا تَكْسِبُ كُلُّ نَفْسٍۢ ۗ وَسَيَعْلَمُ ٱلْكُفَّٰرُ لِمَنْ عُقْبَى ٱلدَّارِ

Ränke haben bereits diejenigen vor ihnen geschmiedet. Aber alles an Ränken ist Allahs. Er weiß, was jede Seele erwirbt. Und die Ungläubigen werden zu wissen bekommen, für wen die letztendliche Wohnstätte sein wird.

Tafsir 13:42

The previous communities had plotted and devised schemes against their prophets and they rejected what they brought to them. What did they manage to do by such schemes? Nothing! This is because the effective plan is only that of Allah and no other. He, may He be glorified, is the One Who knows what their souls earn and He will recompense them for it. Then they will know how wrong they were in not having faith in Allah, and how right the believers were as they would have acquired Paradise and the best outcome.