"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."'
Sunan an-Nasa'i Book 21, Hadith 106