Sayyiduna Jabir (may Allah be pleased with him) reports: A funeral passed by the Messenger of Allah (peace and blessings be upon him), so he stood up. It was the funeral of a Jew, so he (peace and blessings be upon him) stood up for it.
Related hadith on this topic