The praying person is standing before his Lord, conversing with Him in privacy and calling upon Him. If someone passes by him in this state, he interrupts this private conversation and disturbs his worship. That is why it is a serious sin on the part of whoever causes disturbance of a person's prayer by passing in front of him. So the Messenger of Allah (may Allah's peace and blessings be upon him) informed us that if a person would know the consequences of his passing; meaning: the sin and misdeed that he incurs, he would have preferred to stand in his place for extended periods of time than to pass in front of someone during his praying. Therefore, a Muslim must guard against this action and avoid it.
الإلمام بشرح عمدة الأحكام لإسماعيل الأنصاري، ط1، دار الفكر، دمشق، 1381هـ. تأسيس الأحكام للنجمي، ط2، دار علماء السلف، 1414هـ. تيسير العلام شرح عمدة الأحكام للبسام، حققه وعلق عليه وخرج أحاديثه وصنع فهارسه: محمد صبحي بن حسن حلاق، ط10، مكتبة الصحابة، الإمارات - مكتبة التابعين، القاهرة، 1426هـ. تنبيه الأفهام شرح عمدة لأحكام لابن عثيمين، ط1، مكتبة الصحابة، الإمارات، 1426هـ. عمدة الأحكام من كلام خير الأنام صلى الله عليه وسلم لعبد الغني المقدسي، دراسة وتحقيق: محمود الأرناؤوط، مراجعة وتقديم: عبد القادر الأرناؤوط، ط2، دار الثقافة العربية، دمشق، بيروت، مؤسسة قرطبة، 1408 هـ. صحيح البخاري، تحقيق: محمد زهير بن ناصر الناصر، ط1، دار طوق النجاة (مصورة عن السلطانية بإضافة ترقيم: محمد فؤاد عبد الباقي)، 1422هـ. صحيح مسلم، تحقيق: محمد فؤاد عبد الباقي، دار إحياء التراث العربي، بيروت، 1423هـ.