As far as justice and fair play are concerned, they will be given to everybody–whether friend or foe. But having friendships with those who are at war with one is not proper.
He has revealed to you ˹O Prophet˺ the Book in truth, confirming what came before it, as He revealed the Torah and the Gospel