USC-MSA web (English) : Book 9, Hadith 38
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، أَنَّ كَعْبَ الأَحْبَارِ، قَالَ لَوْ يَعْلَمُ الْمَارُّ بَيْنَ يَدَىِ الْمُصَلِّي مَاذَا عَلَيْهِ لَكَانَ أَنْ يُخْسَفَ بِهِ خَيْرًا لَهُ مِنْ أَنْ يَمُرَّ بَيْنَ يَدَيْهِ .
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."
Full reference and source
USC-MSA web (English) : Book 9, Hadith 38 Arabic : Book 9, Hadith 367
View source on Sunnah.com (opens in a new tab)