Quran 60:13 – To Not Make Friends With People Under Wrath Of Allah (i.e. Jews)
Before the last verdict about the annihilation of the polytheists, Muslims were allowed to do good with the polytheists who did not participate in the persecution of the Muslims. For this, see Surah Mumtahina.