Amr bin Dinar and Ubaydullah bin Abu Yazid reported,

During the time of the Prophet ﷺ, there was no wall surrounding the Kaaba. People used to pray around the Kaaba until the time of Umar, who built a wall around it.Ubaydullah said, "Its wall was low, so Ibn Zubayr rebuilt it higher."

Bukhari 3830

Sahih

حدثنا أبو النعمان حدثنا حماد بن زيد

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

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

البخاري 3830صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the Ansar
Chapter
Construction of the Kaaba
Numbering
Darussalam 3830
Bukhari 3830