Busr bin Saeed reported,

Zayd bin Khalid sent him to Abu Juhaym to ask what he had heard from the Messenger of Allah ﷺ regarding one who passes in front of a person 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.'"

Nasai 757

Sahih

أخبرنا قتيبة عن مالك عن أبي النضر

عن بسر بن سعيد

أن زيد بن خالد أرسله إلى أبي جهيم يسأله ماذا سمع من رسول الله ﷺ يقول في المار بين يدي المصلي فقال أبو جهيم قال رسول الله ﷺ لو يعلم المار بين يدي المصلي ماذا عليه لكان أن يقف أربعين خيرا له من أن يمر بين يديه

النسائي 757صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Qibla
Chapter
Stern warning about passing between the one praying and his sutrah
Numbering
Darussalam 757
Nasai 757