It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that he said: "When the news of the Najashi's death came, the Messenger of Allah (peace and blessings be upon him) said: 'Offer the funeral prayer for him.'
The people said: 'O Messenger of Allah, shall we offer the funeral prayer for an Abyssinian slave?'
Then Allah Almighty revealed this verse: 'And indeed, among the People of the Book are those who believe in Allah and in what (speech) has been revealed to you,' to the end of the verse."