Mishkat al-Masabih 787
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَوْ يَعْلَمُ أَحَدُكُمْ مَا لَهُ فِي أَنْ يَمُرَّ بَيْنَ يَدَيْ أَخِيهِ مُعْتَرِضًا فِي الصَّلَاةِ كَانَ لَأَنْ يُقِيمَ مِائَةَ عَامٍ خَيْرٌ لَهُ مِنَ الْخُطْوَةِ الَّتِي خَطَا» . رَوَاهُ ابْنُ مَاجَهْ
And from Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "If one of you knew what [sin] he incurs by passing in front of his brother crosswise while he is in prayer, staying put for a hundred years would be better for him than the step he took." Reported by Ibn Majah.