Surah Al-Imran, ayah 54

3:54

وَمَكَرُواْ وَمَكَرَ ٱللَّهُۖ وَٱللَّهُ خَيۡرُ ٱلۡمَٰكِرِينَ ٥٤

Wamakarū wamakarallāhu wallāhu khayrul-mākirīn

And they [i.e., the disbelievers] planned, but Allāh planned. And Allāh is the best of planners.