Imam Muhammad bin Sirin (may Allah have mercy on him) narrated that a funeral passed by Sayyiduna Ibn Abbas and Sayyiduna al-Hasan bin Ali (may Allah be pleased with them). Sayyiduna al-Hasan (may Allah be pleased with him) stood up, and Sayyiduna Ibn Abbas (may Allah be pleased with them both) remained seated. Sayyiduna al-Hasan (may Allah be pleased with him) said: "Did the Prophet (peace and blessings be upon him) not stand for the funeral of a Jewish man or a Jewish woman that passed by him (peace and blessings be upon him)?" Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: "Yes indeed (he (peace and blessings be upon him) did stand)," and he remained seated.
Related hadith on this topic