Ayesha reported,

I asked the Prophet ﷺ, "Is the Hijr part of the House?"He replied, "Yes."I said, "Then why did they not include it within the House?"He answered, "Your people ran short of funds."I asked, "And why is its door raised so high?"He said, "Your people did that so they could admit whomever they wished and bar whomever they wished. Were it not that your people are recent in their abandonment of the days of ignorance, and I fear their hearts would reject it, I would have included the Hijr within the House and set its door level with the ground."

Bukhari 7243

Sahih

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

عن عائشة قالت

سألت النبي ﷺ عن الجدر أمن البيت هو قال نعم قلت فما لهم لم يدخلوه في البيت قال إن قومك قصرت بهم النفقة قلت فما شأن بابه مرتفعا قال فعل ذاك قومك ليدخلوا من شاءوا ويمنعوا من شاءوا ولولا أن قومك حديث عهدهم بالجاهلية فأخاف أن تنكر قلوبهم أن أدخل الجدر في البيت وأن ألصق بابه في الأرض

البخاري 7243صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Wishing
Chapter
What is permissible of saying "if only"
Numbering
Darussalam 7243
Bukhari 7243