Sure Al-Anfaal

8:34

وَمَا لَهُمْ أَلَّا يُعَذِّبَهُمُ ٱللَّهُ وَهُمْ يَصُدُّونَ عَنِ ٱلْمَسْجِدِ ٱلْحَرَامِ وَمَا كَانُوٓا۟ أَوْلِيَآءَهُۥٓ ۚ إِنْ أَوْلِيَآؤُهُۥٓ إِلَّا ٱلْمُتَّقُونَ وَلَٰكِنَّ أَكْثَرَهُمْ لَا يَعْلَمُونَ

Und was haben sie nun, daß Allah sie nicht strafen sollte, wo sie (euch) von der geschützten Gebetsstätte abhalten? Und sie waren nicht ihre Beschützer. Ihre Beschützer sind ja nur die Gottesfürchtigen'! Aber die meisten von ihnen wissen nicht.

Tafsir 8:34

What prevents them being punished when they have unjustly stopped people from performing both the circling (ţawāf) and the prayer in the Sacred Mosque – actions deserving of punishment? The idolaters are not Allah’s allies. The allies of Allah are only those who are mindful of Him by fulfilling His instructions and avoiding His prohibitions. Most of the idolaters do not know this, as they claim they are Allah’s allies when they are not.