Sunan an-Nasa'i, Volume 3, Book 21, Hadith 1924 (DarusSalam)

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."'

أَخْبَرَنَا مُحَمَّدُ بْنُ مَنْصُورٍ، قَالَ حَدَّثَنَا سُفْيَانُ، عَنِ ابْنِ أَبِي نَجِيحٍ، عَنْ مُجَاهِدٍ، عَنْ أَبِي مَعْمَرٍ، قَالَ كُنَّا عِنْدَ عَلِيٍّ فَمَرَّتْ جَنَازَةٌ فَقَامُوا لَهَا فَقَالَ عَلِيٌّ مَا هَذَا قَالُوا أَمْرُ أَبِي مُوسَى ‏.‏ فَقَالَ إِنَّمَا قَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم لِجَنَازَةِ يَهُودِيَّةٍ وَلَمْ يَعُدْ بَعْدَ ذَلِكَ ‏.‏

sunnah.com