Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) says: "The Messenger of Allah (peace and blessings be upon him) ordered us to follow funerals (that is, to take part in them)."