It was narrated from Busr bin Sa'eed said that Zaid bin Khalid sent him to Abu Juhaim to ask him what he had heard the Messenger of Allah ﷺ say about one who passes in front of a person who is praying? Abu Juhaim said: "The Messenger of Allah ﷺsaid: "If the one who passes in front of a person who is praying knew what (burden of sin) there is on him, standing for forty would be better for him than passing in front of him." (Using translation from Nasāʾī 756)
سَمِعَ مِنْ رَسُولِ اللهِ ﷺ فِي الْمَارِّ بَيْنَ يَدَيِ الْمُصَلِّي؟ فَقَالَ أَبُو جُهَيْمٍ قَالَ رَسُولُ اللهِ ﷺ «لَوْ يَعْلَمُ الْمَارُّ بَيْنَ يَدَيِ الْمُصَلِّي مَاذَا عَلَيْهِ لَكَانَ أَنْ يَقِفَ أَرْبَعِينَ خَيْرًا لَهُ مِنْ أَنْ يَمُرَّ بَيْنَ يَدَيْهِ»