Sure Al-Mumtahana

60:9

إِنَّمَا يَنْهَىٰكُمُ ٱللَّهُ عَنِ ٱلَّذِينَ قَٰتَلُوكُمْ فِى ٱلدِّينِ وَأَخْرَجُوكُم مِّن دِيَٰرِكُمْ وَظَٰهَرُوا۟ عَلَىٰٓ إِخْرَاجِكُمْ أَن تَوَلَّوْهُمْ ۚ وَمَن يَتَوَلَّهُمْ فَأُو۟لَٰٓئِكَ هُمُ ٱلظَّٰلِمُونَ

Er verbietet euch nur, diejenigen, die gegen euch der Religion wegen gekämpft und euch aus euren Wohnstätten vertrieben und zu eurer Vertreibung Beistand geleistet haben, zu Schutzherren zu nehmen. Diejenigen, die sie zu Schutzherren nehmen, das sind die Ungerechten.

Tafsir 60:9

Allah only prohibits you from those who fought you on account of your faith, expelled you from your homes and aided in your expulsion. He prohibits you from aligning yourselves with them. Those of you who align themselves with them, they are the ones who wrong themselves by bringing them to the point of destruction on account of their going against Allah’s instruction.