Zayd bin Khalid al-Juhani sent him to Abu Juhaym to ask what he had heard from the Messenger of Allah ﷺ concerning someone passing in front of a person who is praying.Abu Juhaym said, "The Messenger of Allah ﷺ said, 'If the one who passes in front of a person praying knew what was upon him, standing still for forty would be better for him than passing in front of him.'"Abu Nadr said, "I do not know whether he said forty days, or months, or years."
أن زيد بن خالد الجهني أرسله إلى أبي جهيم يسأله: ماذا سمع من رسول الله ﷺ في المار بين يدي المصلي؟ فقال أبو جهيم: قال رسول الله ﷺ: لو يعلم المار بين يدي المصلي ماذا عليه، لكان أن يقف أربعين خيرا له من أن يمر بين يديه. قال أبو النضر: لا أدري قال أربعين يوما، أو شهرا، أو سنة؟
Malik narrated it in the chapter on Shortening the Prayer (34) from Abu Nadr, the freed slave of Umar bin Ubaydullah, from Busr bin Saeed, who mentioned something similar. Bukhari narrated it in the Book of Prayer (510) from Abdullah bin Yusuf, and Muslim narrated it in the Book of Prayer (507) from Yahya bin Yahya, both of them from Malik with the same wording. Abu Juhaym is Ibn Harith bin Sima Ansari, the companion. The one who narrated it as a mursal report is Zayd bin Khalid Juhani.As for the version narrated by Sufyan bin Uyayna, from Salim Abu Nadr, from Busr bin Saeed, who said, "They sent me to Zayd bin Khalid," this is reversed. Ibn Majah narrated it (944) from Hisham bin Ammar, who said, "Sufyan bin Uyayna narrated to us," and mentioned something similar. In it, Sufyan said, "I do not know whether it was forty years, or a month, or a morning, or an hour." This is how the doubt appeared regarding the specification of the period.However, Bazzar narrated it in his Musnad from Ahmad bin Abda, who said, "Sufyan narrated to us, from Salim Abu Nadr, from Bishr bin Saeed," who said, "Abu Juhaym sent me to Zayd bin Khalid to ask him about the one who passes in front of someone praying." He said, "I heard the Messenger of Allah ﷺ say, 'If the one who passes in front of someone praying knew what he bears for that, standing for forty autumns would be better for him than passing in front of him.'" Nasb Raya (2/79).The Shaykh said, "This contains two points of benefit. The first is his statement, 'forty autumns.' The second is that its text is the reverse of the text found in the Sahihayn. In the wording of the Sahihayn, the one who was asked is Abu Juhaym, and he is the narrator from the Prophet ﷺ, whereas in Bazzar's version the narrator who was asked is Zayd bin Khalid." Ibn Qattan and Ibn Abdul-Barr attributed the error in this to Ibn Uyayna, and they spoke at length about it.I say, Ibn Majah also narrated it (945) from Sufyan following the well-known path. He said, "Ali bin Muhammad narrated to us, who said, 'Waki narrated to us, from Sufyan, from Salim Abu Nadr, from Busr bin Saeed, that Zayd bin Khalid sent to Juhaym Ansari to ask him, "What did you hear from the Prophet ﷺ concerning the man who passes in front of a man while he is praying?"'" He then mentioned the same report with the doubt mentioned earlier. This Sufyan is most likely Ibn Uyayna, the one who appears in the earlier chain. So the error is not from Sufyan, but from the one before him.As for the report narrated from Abu Hurairah as a raised hadith, "If any of you knew what he bears by passing in front of his brother while cutting across his prayer, standing still for a hundred years would be better for him than the step he took," it is daif. Ibn Majah narrated it (946) from Abu Bakr bin Abu Shayba, who said, "Waki narrated to us, from Ubaydullah bin Abdul-Rahman bin Mawhab, from his uncle, from Abu Hurairah," who mentioned the same.Imam Ahmad also narrated it (8837), but a reversal occurred in the chain. He narrated it from Muhammad bin Abdullah, meaning Abu Ahmad Zubayri, who said, "Ubaydullah, meaning Ibn Abdullah bin Mawhab, informed us," who said, "My uncle Ubaydullah bin Abdul-Rahman bin Mawhab informed me, from Abu Hurairah," and he mentioned the same.So the uncle is Ubaydullah bin Abdullah bin Mawhab, and his nephew is Ubaydullah bin Abdul-Rahman bin Mawhab. Ubaydullah bin Abdul-Rahman bin Mawhab is not strong, and his uncle, whose name is Ubaydullah bin Abdullah bin Mawhab, is unknown. Ahmad said, "His hadiths are objectionable narrations." Despite this, Ibn Khuzayma extracted it (814), and Ibn Hibban (2365) in their respective Sahihs, both through the route of Ubaydullah bin Abdul-Rahman bin Mawhab with the same wording. Munziri also graded it sahih in Targheeb wal-Tarheeb (1/377), and Suyuti graded it hasan in Jami Saghir (5/337), which indicates their leniency in this matter.Tirmidhi said, after narrating it through the route of Malik, "This is what is acted upon among the people of knowledge. They disliked passing in front of someone praying, but they did not hold that this invalidates the man's prayer" (2/160).