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.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 14147