From Enmity to Friendship, Except When…

Imām Ibn Taimiyyah, may Allāh have mercy on him, said: “From the well-known verses [in support of not putting non-Muslims in positions of trust or influence over Muslims in Muslim lands] is the saying of one of them:

كُلُّ العَدَاوَاتِ [قَدْ] تُرْجَى مَوَدَّتُهَا
إِلاَّ عَدَاوَةَ مَنْ عَادَاكَ فِي الدِّينِ

There’s hope for friendship in all animosities
Except animosity from those opposed to you for the religion.

Majmūʿ Al-Fatāwá, vol. 28 p. 646.