It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "The one who deliberately passes in front of a person while he is praying will wish on the Day of Resurrection that he were a dry tree."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13737