If someone passes through the worshipper's Sajdah-area, the worshipper's prayer is automatically invalidated.

The Sutrah and Passing in Front of a Worshipper