The Kaabah has been rebuilt several times through history. At least one of these was by Abraham and Ishmael and this is mentioned in the Quran: > وعهدنا إلى إبراهيم وإسماعيل أن طهرا بيتي للطائفين والعاكفين والركع السجود > And We charged Abraham and Ishmael, [saying], "Purify My House for those who perform Tawaf and those who are staying [there] for worship and those who bow and prostrate [in prayer]." > <sup>— [Quran 2:125](https://quran.com/2/125) </sup> > وإذ يرفع إبراهيم القواعد من البيت وإسماعيل ربنا تقبل منا إنك أنت السميع العليم > And [mention] when Abraham was raising the foundations of the House and [with him] Ishmael, [saying], "Our Lord, accept [this] from us. Indeed You are the Hearing, the Knowing. > <sup>— [Quran 2:127](https://quran.com/2/127) </sup> > وإذ بوأنا لإبراهيم مكان البيت أن لا تشرك بي شيئا وطهر بيتي للطائفين والقائمين والركع السجود > And [mention, O Muhammad], when We designated for Abraham the site of the House, [saying], "Do not associate anything with Me and purify My House for those who perform Tawaf and those who stand [in prayer] and those who bow and prostrate." > <sup>— [Quran 22:26](https://quran.com/22/26) </sup> There is no indication in the Quran as to who was the *first* one to built the Kaabah, although it is mentioned that it was the first House ever established: > إن أول بيت وضع للناس للذي ببكة مباركا وهدى للعالمين > Indeed, the first House [of worship] established for mankind was that at Makkah - blessed and a guidance for the worlds > <sup>― [Quran 3:96](https://quran.com/3/96)</sup> And it is reasonable that it could have preceded Abraham, since several nations and prophets from mankind came before him. And it is known that they prayed and prostrated, and a Qiblah is required for these: > أولئك الذين أنعم الله عليهم من النبيين من ذرية آدم وممن حملنا مع نوح ومن ذرية إبراهيم وإسرائيل وممن هدينا واجتبينا إذا تتلى عليهم آيات الرحمن خروا سجدا وبكيا > Those were the ones upon whom Allah bestowed favor from among the prophets of the descendants of Adam and of those We carried [in the ship] with Noah, and of the descendants of Abraham and Israel, and of those whom We guided and chose. When the verses of the Most Merciful were recited to them, they fell in prostration and weeping. > فخلف من بعدهم خلف أضاعوا الصلاة واتبعوا الشهوات فسوف يلقون غيا > But there came after them successors who neglected prayer and pursued desires; so they are going to meet evil - > <sup>― [Quran 19:58-59](https://quran.com/19/58-60)</sup> One tradition about who made the Kaabah: > وقال علي بن أبي طالب - رضي الله عنه - : أمر الله تعالى الملائكة ببناء بيت في الأرض وأن يطوفوا به ; وكان هذا قبل خلق آدم ، ثم إن آدم بنى منه ما بنى وطاف به ، ثم الأنبياء بعده ، ثم استتم بناءه إبراهيم عليه السلام > Ali Ibn Abi Talib said: Allah commanded the angels to build the House on earth and circumambulate around it, this was before the creation of Adam. Then Adam made it again and circumambulated it. Then after him other prophets also did it, and then Abraham completed it. > <sup>―[Tafsir Qurtubi](http://quran.ksu.edu.sa/tafseer/qortobi/sura3-aya96.html)</sup>