By Dr. Malik Sherjeel Awan, PsyD
Published by Dr. Malik Sherjeel Awan, Makkah
Every day, people around the world turn to face one House in Makkah. The Qur’an tells us who raised its foundations, and the Prophet ﷺ described the scene in a long narration in Sahih al-Bukhari. It is a story of a father and son working with their hands, and of prayers Allah preserved in the Qur’an.
This page stays with Qur’an 2:125–129, 3:96–97, 14:37 and 22:26–27, and with Sahih al-Bukhari 3364. Reports about a still earlier origin of the House, sometimes linked to Adam, are not in these verses or in the Sahih narrations used here, so we leave them out.
The first House
The Qur’an says: “Indeed, the first House [of worship] established for mankind was that at Bakkah [i.e., Makkah] – blessed and a guidance for the worlds” (3:96). In it are “clear signs [such as] the standing place of Abraham” (3:97). “And whoever enters it [i.e., the Ḥaram] shall be safe. And [due] to Allāh from the people is a pilgrimage to the House – for whoever is able to find thereto a way” (3:97).
Allah designated the site for Ibrahim (Abraham), peace be upon him: “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 ṭawāf and those who stand [in prayer] and those who bow and prostrate’” (22:26).
An uncultivated valley
Years before the building, Ibrahim had settled some of his descendants in that valley. He prayed: “Our Lord, I have settled some of my descendants in an uncultivated valley near Your sacred House, our Lord, that they may establish prayer. So make hearts among the people incline toward them and provide for them from the fruits that they might be grateful” (14:37). The valley was uncultivated, yet he already called it “Your sacred House”. The story of how Allah provided water there is told in Hajar and the Well of Zamzam.
Father and son at work
Sahih al-Bukhari 3364, narrated by Ibn Abbas, describes the building. Ibrahim returned to Makkah and found Ismail, now grown, near Zamzam. Ibrahim said that Allah had given him an order. Ismail said, “Do what your Lord has ordered you to do.” Ibrahim asked, “Will you help me?” Ismail said, “I will help you.” Ibrahim told him Allah had ordered him to build a house there, “pointing to a hillock higher than the land surrounding it.”
The Prophet ﷺ then said: “Then they raised the foundations of the House (i.e. the Ka`ba). Ishmael brought the stones and Abraham was building, and when the walls became high, Ishmael brought this stone and put it for Abraham who stood over it and carried on building, while Ishmael was handing him the stones.” The stone Ibrahim stood on is linked to the standing place of Ibrahim (Maqam Ibrahim). The Qur’an tells believers: “take, [O believers], from the standing place of Abraham a place of prayer” (2:125).
The dua they made as they built
The same hadith says that as they built, both of them were saying, “O our Lord! Accept (this service) from us, Verily, You are the All-Hearing, the All-Knowing.” The Qur’an preserves their words at length:
رَبَّنَا تَقَبَّلْ مِنَّآ ۖ إِنَّكَ أَنتَ ٱلسَّمِيعُ ٱلْعَلِيمُ
Transliteration (2:127–129, from “Our Lord, accept”): Rabbanā taqabbal minnā innaka anta-s-Samīʿul-ʿAlīm. Rabbanā wajʿalnā muslimayni laka wa min dhurriyyatinā ummatan muslimatan laka wa arinā manāsikanā wa tub ʿalaynā innaka anta-t-Tawwābur-Raḥīm. Rabbanā wabʿath fīhim rasūlan minhum yatlū ʿalayhim āyātika wa yuʿallimuhumul-kitāba wal-ḥikmata wa yuzakkīhim innaka anta-l-ʿAzīzul-Ḥakīm.
Translation (Sahih International): “Our Lord, accept [this] from us. Indeed, You are the Hearing, the Knowing. Our Lord, and make us Muslims [in submission] to You and from our descendants a Muslim nation [in submission] to You. And show us our rites [of worship] and accept our repentance. Indeed, You are the Accepting of Repentance, the Merciful. Our Lord, and send among them a messenger from themselves who will recite to them Your verses and teach them the Book and wisdom and purify them. Indeed, You are the Exalted in Might, the Wise.” (2:127–129)
Look at what they asked for:
- Acceptance. Two prophets raising Allah’s House still asked Him to accept the work. They did not assume it was already enough.
- Faith for themselves and their descendants. They asked to be made Muslims, in submission to Allah, and asked the same for a nation from their descendants.
- To be shown the rites. They asked Allah to teach them how to worship.
- Repentance. Even at this moment of service, they asked Allah to accept their repentance.
- A messenger from among their descendants. They asked for a messenger who would recite Allah’s verses, teach the Book and wisdom, and purify them. Muslims understand this prayer as answered in Prophet Muhammad ﷺ, a descendant of Ismail.
Ibrahim also prayed for the city’s security and provision: “My Lord, make this a secure city and provide its people with fruits – whoever of them believes in Allāh and the Last Day” (2:126). The verse then records Allah’s reply about those who disbelieve: they may be granted enjoyment for a little, then the punishment of the Fire. Security and provision are asked for; they are not treated as an automatic right.
The call to Hajj, and a House made a place of return
Allah made the House “a place of return for the people and [a place of] security” (2:125), and charged Ibrahim and Ismail to “Purify My House for those who perform ṭawāf and those who are staying [there] for worship and those who bow and prostrate [in prayer]” (2:125). Then came the call: “And proclaim to the people the ḥajj [pilgrimage]; they will come to you on foot and on every lean camel; they will come from every distant pass” (22:27).
If you are preparing to visit Masjid al-Haram, this history is the reason the House is faced, circled and honoured. Practical visitor pages include Masjid al-Haram in the Qur’an and visiting Masjid al-Haram for the first time. For Zamzam, see also Zamzam water.
A later rebuilding, kept distinct
Sahih al-Bukhari 3368 records that the Quraysh, in the time before the Prophet’s ﷺ mission was public, rebuilt the Kaaba and did not build it on all of Ibrahim’s foundations. The Prophet ﷺ mentioned this to Aisha, and said that but for her people’s recent leaving of unbelief, he would have restored it on those foundations. Ibn Umar noted that the Prophet ﷺ used not to touch the two corners facing the Hijr only because the House had not been built on the foundations of Ibrahim. This is a later event. It should not be confused with the first raising of the foundations by Ibrahim and Ismail.
What we can take from the passage
- Work and prayer belong together. They raised stones, and they asked Allah to accept the work as they did it.
- Ask for descendants, not only for yourself. Their dua looks forward to people they would not live to see.
- Do not present later stories as Qur’anic fact. The verses and the Sahih narration are already rich. Extra origin stories are not needed to honour the House.
- Purify what is meant for worship. The command to purify the House is joined to tawaf, standing, bowing and prostration.
These are reflections from the cited texts, not a ruling on the rites of Hajj or Umrah. For the rites themselves, follow a qualified teacher and the official guidance of the pilgrimage authorities.
FAQ
Who built the Kaaba in the Qur’an? Ibrahim and Ismail raised its foundations, as in 2:127, and as described in Sahih al-Bukhari 3364. This page does not add an earlier builder from unsourced reports.
What is the standing place of Abraham? The Qur’an mentions it as a clear sign and a place of prayer (2:125, 3:97). The hadith describes a stone Ismail placed for Ibrahim to stand on while the walls grew high.
What dua did they say while building? “Our Lord, accept [this] from us. Indeed, You are the Hearing, the Knowing,” and the verses that follow in 2:127–129.
Is there a set number of times to say this dua? No. The verses record a prayer at a particular moment of work. We do not prescribe a repetition count or promise a result for reciting it.
Related reading
- Stories of the Prophets in the Qur’an: the series index
- Prophet Ibrahim: life, trials and legacy
- Hajar and the Well of Zamzam
- The sacrifice of Ismail: what the Qur’an says
- Ismail, true to his promise (19:54–55)
- Masjid al-Haram in the Qur’an
Qur’an translations are from Sahih International. Hadith checked on sunnah.com. Educational reflection, not a religious ruling.
Sources
- Qur’an: 2:125–129, 3:96–97, 14:37, 22:26–27. Arabic and wording checked through api.quran.com on 25 Nov 2026.
- Sahih al-Bukhari 3364: Ibrahim and Ismail raising the foundations, the stone, and their prayer.
- Sahih al-Bukhari 3368: the later rebuilding by Quraysh, not on all of Ibrahim’s foundations.
