It is narrated from Sayyiduna Ali (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) used to stand upon seeing a funeral, we would also stand. Later, he himself began to remain seated, so we also began to remain seated.