Ayesha reported,

I asked the Messenger of Allah ﷺ about the wall, "Is it part of the House?"He replied, "Yes."I asked, "Then why did they not include it in the House?"He said, "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 refuse whomever they wished. Were it not that your people are still close to the days of ignorance, and I fear their hearts would reject it, I would consider including the wall within the House and setting its door level with the ground."

Muslim 3249

Sahih

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

عن عائشة قالت

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

مسلم 3249صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Walls and door of the Kaaba
Numbering
Darussalam 3249
Muslim 3249