Ibn al-Qayyim (may Allah have mercy on him) says in al-Kāfiyah al-Shāfiyah:
Can you love the Beloved’s foes and still pretend
To love Him too? Such love can never blend.
And can you strive against His cherished friends—
Where is that love, O brother of the fiend?
Thus it is impossible for anyone to profess, “I love Allah and His Messenger,” while loving the unbelievers, for the Almighty says, “O you who believe, do not take My enemies and your enemies as allies, showing them affection…” (Al-Mumtaḥanah 60:1), and He says, “You have indeed in Abraham and those with him a good example when they said to their people, ‘We disown you and whatever you worship besides Allah; we reject you, and enmity and hatred have appeared between us and you forever—until you believe in Allah alone.’” (Al-Mumtaḥanah 60:4). He also says, “Abraham’s seeking forgiveness for his father was only because of a promise he had made to him; but when it became clear to him that he was an enemy of Allah, he disowned him. Indeed, Abraham was most tender-hearted, forbearing.” (Al-Tawbah 9:114).
This is the creed of Abraham: he disassociated himself from his own father—the closest person to him—once it became clear that his father was an enemy of Allah.
The verse likewise shows that loving a disbeliever contradicts faith in Allah and the Last Day, whether it nullifies faith altogether or merely diminishes its perfection. If that love is accompanied by supporting their creed and their unbelief, then this constitutes a departure from