Busr bin Saeed reported,

They sent me to Zayd bin Khalid to ask him about passing in front of someone who is praying. He informed me that the Prophet ﷺ said, "For a person to stand for forty is better for him than to pass in front of him."Sufyan said, "I do not know whether he meant forty years, forty months, forty mornings, or forty hours."

Ibn Majah 944

Sahih

حدثنا هشام بن عمار حدثنا سفيان بن عيينة عن سالم أبي النضر

عن بسر بن سعيد قال

أرسلوني إلى زيد بن خالد أسأله عن المرور بين يدي المصلي فأخبرني عن النبي ﷺ قال لأن يقوم أربعين خير له من أن يمر بين يديه قال سفيان فلا أدري أربعين سنة أو شهرا أو صباحا أو ساعة

ابن ماجه 944صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Passing in front of someone praying
Numbering
Darussalam 944
Ibn Majah 944