Whenever you see a funeral procession, stand up for that until it moves away or is lowered on the ground. Sahih Muslim Book 11, Hadith 95