Muhammad b. Sinn said that when a bier came past al-Hasan b. ‘All and Ibn ‘Abbas al-Hasan stood up but Ibn ‘Abbas did not, so al- Hasan said, “Did God’s messenger not stand up out of respect for the bier of a Jew ?” He replied, “Yes, but thereafter he sat.”
Ja'far b. Muhammad told on his father’s authority that when al- Hasan b. ‘All was sitting a bier was brought past him and the people stood up till the bier had gone by. Al-Hasan then said, “A bier carrying a Jew was brought past when God’s messenger was sitting in its path, and just because he did not like having a Jew’s bier higher than his head he stood up.”
‘Ubada b. as-Samit said that when God’s messenger followed a bier he did not sit down till the corpse was placed in the side of the grave. On being accosted by a learned Jew and told that that was how they did, God’s messenger sat down and said, “Act differently from them.”
Tirmidhi, Abu Dawud and Ibn Majah transmitted it, Tirmidhi saying that this is a gharib tradition and that Bishr b. Rafi' the transmitter was not strong.