Hadith 3054
Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) narrates: Previously (it was the practice of the Prophet ﷺ) that when he saw a funeral, he would stand up; (later, the Prophet ﷺ adopted this practice) that he would remain seated.