وَإِذَا صَلَّى الْإِمَامُ فِي الْمَسْجِدِ الْحَرَامِ: حَلَّقَ النَّاسُ حَوْلَ الْكَعْبَةِ، وَصَلَّوْا بِصَلَاةِ الْإِمَامِ.
Translation: When the imam leads prayer in the Sacred Mosque, the people form rows around the Kaaba and follow the imam.
Hallaqa al-nas describes rows facing the Kaaba from different sides, rather than all facing a single geographical direction.
The distinction between sharing the imam’s side and standing on a different side affects the legal meaning of precedence.