Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
malik:9-40Mālik > Zayd b. Aslam > ʿAṭāʾ b. Yasār > Kaʿb al-Aḥbār

Yahya related to me from Malik from Zayd ibn Aslam from Ata ibn Yasar that Kab al-Ahbar said, "If the person who passed in front of a man praying knew what he was bringing on himself, it would be better for him to sink into the ground than to pass in front of him."  

مالك:٩-٤٠وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ زَيْدِ بْنِ أَسْلَمَ عَنْ عَطَاءِ بْنِ يَسَارٍ أَنَّ كَعْبَ الأَحْبَارِ

قَالَ لَوْ يَعْلَمُ الْمَارُّ بَيْنَ يَدَىِ الْمُصَلِّي مَاذَا عَلَيْهِ لَكَانَ أَنْ يُخْسَفَ بِهِ خَيْرًا لَهُ مِنْ أَنْ يَمُرَّ بَيْنَ يَدَيْهِ  


See similar narrations below:

Collected by Nasāʾī's Kubrá, Suyūṭī
nasai-kubra:834Qutaybah b. Saʿīd > Mālik > Abū al-Naḍr > Busr b. Saʿīd > Zayd b. Khālid Arsalah > Abū Juhaym Yasʾaluh Mādhā

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)  

الكبرى للنسائي:٨٣٤أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ عَنْ مَالِكٍ عَنْ أَبِي النَّضْرِ عَنْ بُسْرِ بْنِ سَعِيدٍ أَنَّ زَيْدَ بْنَ خَالِدٍ أَرْسَلَهُ إِلَى أَبِي جُهَيْمٍ يَسْأَلُهُ مَاذَا

سَمِعَ مِنْ رَسُولِ اللهِ ﷺ فِي الْمَارِّ بَيْنَ يَدَيِ الْمُصَلِّي؟ فَقَالَ أَبُو جُهَيْمٍ قَالَ رَسُولُ اللهِ ﷺ «لَوْ يَعْلَمُ الْمَارُّ بَيْنَ يَدَيِ الْمُصَلِّي مَاذَا عَلَيْهِ لَكَانَ أَنْ يَقِفَ أَرْبَعِينَ خَيْرًا لَهُ مِنْ أَنْ يَمُرَّ بَيْنَ يَدَيْهِ»  

suyuti:17998a
Request/Fix translation

  

السيوطي:١٧٩٩٨a

"لَو يَعلَمُ الْمَارُّ بَينَ يدي المُصَلِّى: مَاذا عَلَيهِ لَكَانَ يَقِفُ أَربَعيِن خَيرًا لَهُ مِن أنْ يَمُرَّ بَينَ يديه".  

مالك، [حم] أحمد [م] مسلم [د] أبو داود [ت] الترمذي [ن] النسائي [هـ] ابن ماجة عن أبي جهيم