Amr bin Dinar and Ubaydullah bin Abu Yazid reported,

During the time of the Prophet ﷺ, there was no wall around the Kaaba. People would pray around the Kaaba until Umar came and built a wall around it.Ubaydullah said, "Its wall was low, so Ibn Zubayr rebuilt it."

Azami 11920

Sahih

عن عمرو بن دينار وعبيد الله بن أبي يزيد قالا

لم يكن على عهد النبي ﷺ حول البيت حائد، كانوا يصلون حول البيت، حتى كان عمر فبنى حوله حائطا. قال عبيد الله: جدره قصير، فبناه ابن الزبير.

الأعظمي 11920صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And when Ibrahim was raising the foundations of the House and Ismail, Our Lord"
Numbering
Jami al-Kamil 11920 (2nd edition)
Azami 11920