[Machine] The Messenger of Allah ﷺ said, "Indeed, your brother An-Najashi has passed away, so stand up and pray for him." A man said, "O Messenger of Allah, how do we pray for him when he died in his disbelief?" He said, "Do you not hear the saying of Allah, the Exalted and Glorious, 'And indeed, among the People of the Scripture are those who believe in Allah and what has been revealed to you and what was revealed to them.'" (Quran 3:113) until the end of the verse.
قَالَ رَسُولُ اللهِ ﷺ «إِنَّ أَخَاكُمُ النَّجَاشِيَّ قَدْ مَاتَ قُومُوا فَصَلُّوا عَلَيْهِ» فَقَالَ رَجُلٌ يَا رَسُولَ اللهِ كَيْفَ نُصَلِّي عَلَيْهِ وَقَدْ مَاتَ فِي كُفْرِهِ؟ قَالَ أَلَا تَسْمَعُونَ إِلَى قَوْلِ اللهِ جَلَّ وَعَزَّ {وَإِنَّ مِنْ أَهْلِ الْكِتَابِ لِمَنْ يُؤْمِنُ بِاللهِ وَمَا أُنْزِلَ إِلَيْكُمْ وَمَا أُنْزِلَ إِلَيْهِمْ} إِلَى آخِرِ الْآيَةِ