Surah Al-Imran, ayah 28

3:28

لَّا يَتَّخِذِ ٱلۡمُؤۡمِنُونَ ٱلۡكَٰفِرِينَ أَوۡلِيَآءَ مِن دُونِ ٱلۡمُؤۡمِنِينَۖ وَمَن يَفۡعَلۡ ذَٰلِكَ فَلَيۡسَ مِنَ ٱللَّهِ فِي شَيۡءٍ إِلَّآ أَن تَتَّقُواْ مِنۡهُمۡ تُقَىٰةٗۗ وَيُحَذِّرُكُمُ ٱللَّهُ نَفۡسَهُۥۗ وَإِلَى ٱللَّهِ ٱلۡمَصِيرُ ٢٨

Llā yattakhidhil-mu'minūnal-kāfirīna awliyā'a min dūnil-mu'minīna waman yaf'al dhālika falaysa minallāhi fī shay'in illā an tattaqū minhum tuqātan wayuhaddhirukumullāhu nafsahū wa ilallāhil-masīr

Let not believers take disbelievers as allies [i.e., supporters or protectors] rather than believers. And whoever [of you] does that has nothing [i.e., no association] with Allāh, except when taking precaution against them in prudence.122 And Allāh warns you of Himself, and to Allāh is the [final] destination.

Footnotes

122 When fearing harm from an enemy, the believer may pretend as long as his heart and intention are not affected.