Reference: Taqyeed ash-Shawaarid min al-Qawaa.id wal-Fawaa.id – Page 293
In al-Masjid al-Haraam, there is no sin in passing in front of the one who is praying, as this is permissible according to the majority of the scholars. [Whilst] some of them have said: ‘It is not permissible because there is nothing specific [mentioned] about the Haram; As for the ahaadeeth permitting [passing in front of the one who is praying in the Haram], then they are weak.’
And from amongst the evidences [cited by] the majority [of the scholars], is that the Prophet ﷺ would pray, whilst the people were performing the tawaaf [around the Ka’bah] in front of him.