It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that when Sayyiduna Abdullah bin Salam (may Allah be pleased with him), Sayyiduna Tha'labah bin Sa'yah (may Allah be pleased with him), Sayyiduna Asad bin Ubayd (may Allah be pleased with him) and others from the Jews became Muslims, believed, affirmed (the Prophet (peace and blessings be upon him)) and became eager for Islam, the disbelieving scholars of the Jews said: "None have believed in Muhammad (peace and blessings be upon him) and followed him except the worst of us; had they been among the best of us, they would not have abandoned the religion of their forefathers." So concerning this saying of theirs, Allah, the Mighty and Majestic, revealed these verses: "They are not all alike; among the People of the Book" (up to His saying:) "they are among the righteous."
Related hadith on this topic