Passing in front of a man who is offering Salah does not interrupt Salah. However, if he passes between him and the Sutrah or too close to him if there is no Sutrah, he commits a sin. If he passes behind the Sutrah or at a far distance if there is no Sutrah, he has not committed a sin, according to the saying of the Prophet (peace be upon him):
“If one of you puts something in front of him such as the back of a saddle, then let him offer Salah without caring who passes beyond that.”
Muslim) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.