It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that a funeral passed by the Prophet (peace and blessings of Allah be upon him), so he stood up and remained standing until it disappeared from sight. Also, once the Prophet (peace and blessings of Allah be upon him) and his companions stood up for the funeral of a Jew until it disappeared from sight.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 14147