Sahih Muslim 961 a, 961 b
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَلَيْسَتْ نَفْسًا "
It is narrated on the authority of Ibn Abu Laila that while Qais b. Sa'd and Sahl b. Hunaif were both in Qadislyya a bier passed by them and they both stood up. They were told that it was the bier of one of the people of the land (non-Muslim). They said that a bier passed before the Prophet (ﷺ) and he stood up. He was told that he (the dead man) was a Jew. Upon this he remarked:
Was he not a human being or did he not have a soul? And in the hadith narrated by 'Amr b. Murra with the same chain of transmitters, (the words) are:" There passed a bier before us."
Full reference and source
Sahih Muslim 961 a, 961 b In-book : Book 11, Hadith 103 USC-MSA web (English) : Book 4, Hadith 2098 (deprecated)
View source on Sunnah.com (opens in a new tab)