Hadithcore
Mishkat al-Masabih, 787

Abu Huraira reported God’s Messenger as saying, “If one of you knew what he incurred by passing in front of his brother and interfering with his prayer, it would be better for him to stop a hundred years than to take a single step.” Ibn Majah transmitted it.

وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَوْ يَعْلَمُ أَحَدُكُمْ مَا لَهُ فِي أَنْ يَمُرَّ بَيْنَ يَدَيْ أَخِيهِ مُعْتَرِضًا فِي الصَّلَاةِ كَانَ لَأَنْ يُقِيمَ مِائَةَ عَامٍ خَيْرٌ لَهُ مِنَ الْخُطْوَةِ الَّتِي خَطَا» . رَوَاهُ ابْنُ مَاجَهْ

References1 variant
In-Book Reference
Book 4, Hadith 215