It is narrated from Abdullah bin Sakhbarah: We were sitting with Sayyiduna Ali (may Allah be pleased with him), waiting (for a funeral), when a funeral passed by us and we stood up out of respect for it. Upon this he said: "What is this?! O Companions of Muhammad (peace and blessings be upon him)! What (new thing) is this that you have brought us?" It was said: Sayyiduna Abu Musa al-Ash'ari (may Allah be pleased with him) narrated to us that the Messenger of Allah (peace and blessings be upon him) said: "When the funeral of a Muslim, a Jew or a Christian passes by you, stand up for it, for we do not stand for the (body of the) funeral itself, but because of the angels who are with it." Then Sayyiduna Ali (may Allah be pleased with him) said: "The Messenger of Allah (peace and blessings be upon him) did this only once, when they were the People of the Book and he (peace and blessings be upon him) (initially) used to conform with them in some matters; then when he (peace and blessings be upon him) was forbidden (from it through revelation), he (peace and blessings be upon him) stopped." Imam Abu Dawud al-Tayalisi recorded it, and the wording is his; Imam Ahmad bin Hanbal also recorded it, and Imam Abu Bakr bin Abi Shaybah recorded it in abridged form; and the wording of a marfu' and mawquf narration of Imam Musaddad is that Sayyiduna Ali (may Allah be pleased with him) said: "After doing so once for a Jew of the People of the Book, the Messenger of Allah (peace and blessings be upon him) never did it again, and his (peace and blessings be upon him) blessed way was that when he (peace and blessings be upon him) was forbidden from something, he (peace and blessings be upon him) would desist." The chains of all these narrations revolve around Layth bin Abi Sulaym, and he is technically a da'if (weak) narrator.
Hadith Takhrij«ومدار أسانيدهم على ليث بن أبي سليم، وهو ضعيف» «أخرجه مسند أحمد برقم: 19206، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 7264»