Yes, it must be avoided unless there is no space in the masjid.

Is it prohibited to make a row in between the piller(sitoon) of the masjid in congregration prayer as its mentioned in Ibn Majah from Anas Bin Malik that he said: “We were prohibited from performing prayers between pillars in the period of the Prophet (Sallallahu Alaihi wa Sallam) and we used to be driven away from staying between pillars.”

Prayer |