Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) narrates: I asked Sayyiduna Bilal (may Allah be pleased with him): When the Prophet (peace and blessings be upon him) entered the Ka'bah, where did he pray? He replied: Between the two front pillars. The narrator says: I did not remember to ask him how many rak'ahs the Prophet (peace and blessings be upon him) performed. (Imam Ibn Hibban, may Allah have mercy on him, says:) The action is that it is prohibited to perform congregational prayer between the pillars, but as for an individual praying between the pillars, that is permissible.
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2220
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» (1764 و 1765)، «صفة الصلاة».فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح، رجاله ثقات رجال الشيخين غير إبراهيم بن بشار، وهو الرمادي، وهو مع كونه حافظا له أوهام، لكنه توبع.