عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا لَهَا، فَمَنِ اتَّبَعَهَا فَلَا يَقْعُدْ حَتَّى تُوَضَعَ))
Sayyiduna Abu Sa‘id Khudri (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: When you see a funeral procession, stand up for it, and whoever accompanies the funeral should not sit down until it has been placed (on the ground).