Quran 60:13 – To Not Make Friends With People Under Wrath Of Allah (i.e. Jews)
And the verse I mentioned it says that don’t make friendship with those whom Allah is angry but isn’t Allah Allah angry on those who knowingly or deliberately rejects truth so were the sahaba not allowed to make friends with the disbelievers of there time?