Shaykh Abdul Sattar al-Hammad
Hadith Commentary:
Abdul Hameed bin Mahmood narrates that we prayed behind an amir (leader). People compelled us, so we prayed between two pillars. After the prayer, Anas bin Malik (radi Allahu anhu) said that during the time of the Messenger of Allah (sallallahu alayhi wa sallam), we used to try to avoid this. (Jami‘ at-Tirmidhi, Kitab as-Salat, Hadith: 229)
Similarly, Qurrah bin Iyas Muzani narrates that during the time of the Messenger of Allah (sallallahu alayhi wa sallam), we were forbidden from forming rows between pillars, and we were strictly prevented from this. (Sunan Ibn Majah, Iqamat as-Salawat, Hadith: 1002)
From these narrations, it is understood that praying between pillars is prohibited. Imam Bukhari (rahimahullah), by adding the restriction of “not in congregation” in the chapter heading, clarified that this prohibition pertains to congregational prayer; if someone is praying alone, then there is no significant harm in it. For this, he presented the practice of the Messenger of Allah (sallallahu alayhi wa sallam), that he prayed between two pillars inside the Ka‘bah. Accordingly, Shah Waliullah Muhaddith Dehlawi (rahimahullah) writes in Sharh Tarajim Bukhari:
“A person praying alone may pray between pillars; the dislike is only for praying between pillars in the state of congregation.”
Source: Hidayat al-Qari: Commentary on Sahih Bukhari, Urdu, Page: 504