The Messenger of Allah ﷺ as saying: "If one who passes in front of a man who is praying knew the responsibility he incurs, he would prefer to stand still for forty. . . rather than pass in front of him. Abu al-Nadr said: I do not know whether he said forty days, or months, or years." Abu Dawud: Sufyan al-Thawri said: If a man passes proudly in front of me while I am praying, I shall stop him, and if a weak man passes, I shall not stop him. (Using translation from Abū Dāʾūd 701)
سَمِعَ مِنْ رَسُولِ اللهِ ﷺ فِي الْمَارِّ بَيْنَ يَدَيِ الْمُصَلِّي؟ قَالَ أَبُو جُهَيْمٍ قَالَ رَسُولُ اللهِ ﷺ لَوْ يَعْلَمُ الْمَارُّ بَيْنَ يَدَيِ الْمُصَلِّي مَاذَا عَلَيْهِ لَكَانَ أَنْ يَقِفَ أَرْبَعِينَ خَيْرًا لَهُ مِنْ أَنْ يَمُرَّ بَيْنَ يَدَيْهِ قَالَ أَبُو النَّضْرِ لَا أَدْرِي قَالَ أَرْبَعِينَ يَوْمًا أَوْ شَهْرًا أَوْ سَنَةً