Mishkat al-Masabih 1680
عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى قَالَ: كَانَ ابْن حنيف وَقيس ابْن سَعْدٍ قَاعِدَيْنِ بِالْقَادِسِيَّةِ فَمُرَّ عَلَيْهِمَا بِجَنَازَةٍ فَقَامَا فَقيل لَهما: إِنَّهَا مِنْ أَهْلِ الْأَرْضِ أَيْ مِنْ أَهْلِ الذِّمَّةِ فَقَالَا: إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَرَّتْ بِهِ جَنَازَةٌ فَقَامَ فَقِيلَ لَهُ: إِنَّهَا جَنَازَة يَهُودِيّ. فَقَالَ: «أليست نفسا؟»
From ʿAbd ar-Rahman ibn Abi Layla, who said: Ibn Hunayf and Qays ibn Saʿd were sitting in al-Qadisiyyah when a funeral was carried past them, and they stood up. It was said to them: "It is of the people of the land," meaning of the people of the dhimmah. They said: "A funeral passed by the Messenger of Allah ﷺ and he stood up. It was said to him: 'It is the funeral of a Jew.' He said: 'Is it not a soul?'"