It is narrated from Hazrat Abu Saeed Khudri (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: Whoever accompanies a funeral should not sit down before the funeral is placed on the ground.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 11443