Abu Shatha reported,

I went out for Hajj and entered the House. When I reached the area between the two pillars, I went forward until I pressed myself against the wall.Then Ibn Umar came and stood beside me, and he prayed four rakahs. When he had finished, I asked him, "Where in the House did the Messenger of Allah ﷺ pray?"He replied, "Right here. Usama bin Zayd informed me that he prayed in this spot."I asked, "How many rakahs did he pray?"He said, "Concerning this, I find myself blaming myself, for I spent a long time with him and did not ask him how many he prayed."The following year, he said, I went out for Hajj again, and I came to the same spot where he had stood. Then Ibn Zubayr came and stood beside me, and he kept crowding me until he pushed me out of the place. Then he prayed four rakahs there.

Azami 5305

Sahih

عن أبي الشعثاء، قال

خرجت حاجا فدخلت البيت، فلما كنت عند الساريتين، مضيت حتى لزقت بالحائط، قال: وجاء ابن عمر حتى قام إلى جنبي، فصلى أربعا. قال: فلما صلى قلت له: أين صلى رسول الله ﷺ من البيت؟ قال: فقال هاهنا أخبرني أسامة بن زيد أنه صلى. قال: قلت: فكم صلى؟ قال: على هذا أجدني ألوم نفسي أني مكثت معه عمرا، ثم لم أسأله كم صلى. فلما كان العام المقبل، قال: خرجت حاجا، قال: فجئت في مقامه، قال: فجاء ابن الزبير حتى قام إلى جنبي، فلم يزل يزاحمني حتى أخرجني منه، ثم صلى فيه أربعا.

الأعظمي 5305صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Prayer in the Kaaba
Numbering
Jami al-Kamil 5305 (2nd edition)
Azami 5305