It is narrated from Sayyiduna Amir bin Rabi'ah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When you see a funeral, stand up - or he said: stop - until it passes beyond you." The narrator says: It was the practice of Sayyiduna Ibn Umar (may Allah be pleased with them both) that when he saw a funeral he would stand until it passed beyond him; and when Sayyiduna Ibn Umar (may Allah be pleased with them both) went out with a funeral (to the graveyard), he would turn his back towards the graveyard (at the time of returning). Abd bin Humayd recorded it with a sahih (authentic) chain, and Imam Muslim recorded it in his Sahih and Imam al-Nasa'i in 'al-Sughra', but their narrations do not contain the words of Sayyiduna Ibn Umar's (may Allah be pleased with them both) report "And it was the practice of Ibn Umar that when he saw a funeral" to the end.
Hadith Takhrij«رواه عبد بن حميد بسند الصحيح، ورواه مسلم في صحيحه، والنسائي في الصغرى دون قوله: "وكان ابن عمر إذا رأى جنازة» «أخرجه صحيح البخاري برقم: 1245، 1246، وأخرجه صحيح مسلم برقم: 958، وأخرجه سنن الترمذي برقم: 1042، وأخرجه سنن النسائي برقم: 1915، 1916، وأخرجه سنن أبي داود برقم: 3172، وأخرجه سنن ابن ماجه برقم: 1542، وأخرجه مسند أحمد برقم: 15247، وأخرجه فتح الباري برقم: 1246، وأخرجه مسند البزار برقم: 3809، وأخرجه المستدرك على الصحيحين برقم: 1357، 5593، وأخرجه شرح معاني الآثار برقم: 2781»