It was narrated that Abu Ma'mar said: "We were with 'Ali and a funeral passed by him, and they stood up for it. 'Ali said: "What is this?' They said: “The command of Abu Musa.' He said: “Rather the Messenger of Allah stood up for a Jewish funeral but he did not do it again””
SahihSahihDaifBook 21 · Hadith 106