It was narrated from ‘Amir bin Rabi’ah that the Prophet (ﷺ) said:
“When you see a funeral (procession) stand up for it until it has passed by or it is placed on the ground.”