Fiqh-us-Sunnah Volume 5, Hajj and ‘Umrah, Fiqh 5.079.

Section : Passing in Front of Worshippers in the Sacred Mosque.

It is permissible to offer prayer in the Sacred Mosque while the people, male and female, pass in front of the worshipper. There is no harm in it, and it is one of the special characteristics of the Sacred Mosque. Kathir bin Kathir bin Al-Mutalib bin Wida’ah reported from some of his family members and from his grandfather that he said: “I saw the Prophet (peace be upon him) offering prayer in the Sacred Mosque in the area adjacent to Bani Sahm while people passed in front of him but he did not place any sutrah (protection) in front of him.” Suffiyan bin ‘Uyainah said, “There was no partition between him and the Ka’bah.” (Reported by Abu Daw ud Nasa’i, and Ibn Majah)