Surah An-Naml 27:50
وَمَكَرُوا۟ مَكْرًا وَمَكَرْنَا مَكْرًا وَهُمْ لَا يَشْعُرُونَ
And they planned a plan, and We planned a plan, while they perceived not.
Translation: Saheeh International
Tafsir
So they plotted thereby a plot but We also plotted a plot in other words We requited them by hastening on their punishment while they were not aware.
Excerpt from Tafsir al-Jalalayn, commentary on 27:50, via Quran.com. The reader has the full commentary and 9 more tafsirs.