´Abdul-Hamid bin Mahmud said:` "We prayed behind one of the Amirs, the people compelled us such that we prayed between two columns. When we had prayed, Anas bin Malik said: 'We would be prevented from this during the time of Allah's Messenger.'"
Narrated AbdulHamid ibn Mahmud: I offered the Friday prayer along with Anas ibn Malik. We were pushed to the pillars (due to the crowd of people). We, therefore, stopped forward and backward. Anas then said: We used to avoid it (setting a row between the pillars) during the time of the Messenger of Allah ﷺ.
Shaykh Umar Farooq Saeedi
673. Commentary: Since the row is interrupted because of the pillars, it is not permissible. However, if due to severe crowding and a large multitude of people, no other place is available, then it is permitted out of necessity, but one should avoid it as much as possible.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 673