It is narrated from Sayyiduna Amir bin Rabi’ah that the Prophet (peace and blessings be upon him) said: When you see a funeral procession, stand up until it passes by. Sayyiduna Ibn Umar, when he saw a funeral procession, would stand up until it passed by, and when he accompanied a funeral, he would turn his back towards the other graves.