What Is the Kaaba? Its History and Virtue in the Hadith
Contents
What is the Kaaba? Every day, more than a billion Muslims turn toward it five times in prayer, and every year millions walk around it. It is the cube-shaped House of Allah in the middle of al-Masjid al-Haram in Makkah. Here is its story as the Quran and the authentic hadith tell it, and what they leave unsaid.
At a glance
- Short answer: The Kaaba is the House of Allah in Makkah: the first house set up for His worship, raised by Ibrahim and Isma’il, faced in every prayer and circled in tawaf.
- Note: Muslims worship Allah, not the Kaaba. It is the direction of prayer, not an object of worship.
- Evidence: Quran 3:96 and 2:127; Sahih al-Bukhari 3366, 1583, 2478 and 1593
- Grade: Sahih (al-Bukhari)
- Do it today: Before your next prayer, turn to the qibla and remember who built it, and why
What is the Kaaba? The first House for mankind
The Quran itself answers the question. Allah says the Kaaba was the very first house set up for people to worship Him:
إِنَّ أَوَّلَ بَيْتٍ وُضِعَ لِلنَّاسِ لَلَّذِى بِبَكَّةَ مُبَارَكًا وَهُدًى لِّلْعَـٰلَمِينَ
Indeed, the first House [of worship] established for mankind was that at Bakkah [i.e., Makkah] – blessed and a guidance for the worlds.
Surah Al Imran 3:96 · Translation: Saheeh International, from Quran.com
Bakkah is another name for Makkah. The verse calls the House blessed and a guidance for all people, not for one tribe or one land.
Raised by Ibrahim and Isma’il
The Quran tells us who raised its foundations: Prophet Ibrahim and his son Isma’il (peace be upon them), praying as they worked.
وَإِذْ يَرْفَعُ إِبْرَٰهِـۧمُ ٱلْقَوَاعِدَ مِنَ ٱلْبَيْتِ وَإِسْمَـٰعِيلُ رَبَّنَا تَقَبَّلْ مِنَّآ ۖ إِنَّكَ أَنتَ ٱلسَّمِيعُ ٱلْعَلِيمُ
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.
Surah Al-Baqarah 2:127 · Translation: Saheeh International, from Quran.com
Their dua is a lesson by itself: they built the House of Allah and still asked Him to accept it. We tell more of Isma’il’s story in our article on Prophet Isma’il.
The first mosque on earth
Abu Dharr (may Allah be pleased with him) asked the Prophet ﷺ which mosque came first:
قُلْتُ يَا رَسُولَ اللَّهِ، أَىُّ مَسْجِدٍ وُضِعَ فِي الأَرْضِ أَوَّلُ قَالَ الْمَسْجِدُ الْحَرَامُ. قَالَ قُلْتُ ثُمَّ أَىٌّ قَالَ الْمَسْجِدُ الأَقْصَى. قُلْتُ كَمْ كَانَ بَيْنَهُمَا قَالَ أَرْبَعُونَ سَنَةً، ثُمَّ أَيْنَمَا أَدْرَكَتْكَ الصَّلاَةُ بَعْدُ فَصَلِّهْ، فَإِنَّ الْفَضْلَ فِيهِ
I said, “O Messenger of Allah, which mosque was set up on the earth first?” He said, “Al-Masjid al-Haram.” I said, “Then which?” He said, “Al-Masjid al-Aqsa.” I said, “How long was there between them?” He said, “Forty years. Then wherever the prayer finds you after that, pray, for the virtue is in that.”
Sahih al-Bukhari 3366 · Narrated by Abu Dharr · Translation adapted from Sunnah.com
Sahih Muslim has the same question and answer (Sahih Muslim 520a). Notice how the hadith ends: the first mosque is in Makkah, yet the whole earth is a place of prayer, so no one has to be near the Kaaba to pray on time.
Rebuilt by Quraysh, short of Ibrahim’s foundations
Before Islam, the Quraysh rebuilt the Kaaba, but not on its full original foundations. ‘A’ishah (may Allah be pleased with her) reported:
أَلَمْ تَرَىْ أَنَّ قَوْمَكِ لَمَّا بَنَوُا الْكَعْبَةَ اقْتَصَرُوا عَنْ قَوَاعِدِ إِبْرَاهِيمَ. فَقُلْتُ يَا رَسُولَ اللَّهِ أَلاَ تَرُدُّهَا عَلَى قَوَاعِدِ إِبْرَاهِيمَ. قَالَ لَوْلاَ حِدْثَانُ قَوْمِكِ بِالْكُفْرِ لَفَعَلْتُ
The Messenger of Allah ﷺ said to her, “Do you not see that when your people built the Kaaba, they fell short of Ibrahim’s foundations?” I said, “O Messenger of Allah, will you not rebuild it on Ibrahim’s foundations?” He said, “Were it not that your people have only recently left disbelief, I would do so.”
Sahih al-Bukhari 1583 · Narrated by ‘A’ishah · Translation adapted from Sunnah.com
The Prophet ﷺ left the building as it was, so as not to unsettle people who were new to Islam (also Sahih al-Bukhari 1586 and Sahih Muslim 1333a). Even the right change can wait when people’s hearts are not ready for it.
Cleared of 360 idols
By the Prophet’s ﷺ time, the House built for Allah alone was surrounded by idols. When Makkah was opened, ‘Abdullah ibn Mas‘ud (may Allah be pleased with him) reported:
دَخَلَ النَّبِيُّ صلى الله عليه وسلم مَكَّةَ، وَحَوْلَ الْكَعْبَةِ ثَلاَثُمِائَةٍ وَسِتُّونَ نُصُبًا فَجَعَلَ يَطْعَنُهَا بِعُودٍ فِي يَدِهِ وَجَعَلَ يَقُولُ {جَاءَ الْحَقُّ وَزَهَقَ الْبَاطِلُ}
The Prophet ﷺ entered Makkah, and around the Kaaba there were three hundred and sixty idols. He began striking them with a stick in his hand, saying, “Truth has come, and falsehood has vanished” (the verse).
Sahih al-Bukhari 2478 · Narrated by ‘Abdullah ibn Mas‘ud · Translation adapted from Sunnah.com
The verse he recited is from Surah al-Isra’ (17:81). The Kaaba returned to the purpose Ibrahim built it for: the worship of Allah alone.
Hajj to the Kaaba will go on
Abu Sa‘id al-Khudri (may Allah be pleased with him) reported that the Prophet ﷺ said:
لَيُحَجَّنَّ الْبَيْتُ وَلَيُعْتَمَرَنَّ بَعْدَ خُرُوجِ يَأْجُوجَ وَمَأْجُوجَ
“The House will surely be visited for Hajj and Umrah even after the coming out of Gog and Magog.”
Sahih al-Bukhari 1593 · Narrated by Abu Sa‘id al-Khudri · Translation adapted from Sunnah.com
In another chain in the same place, al-Bukhari adds: “The Hour will not be established until Hajj to the House is abandoned.” Pilgrims will keep answering the call almost until the end of time.
What the hadith don’t say
- Its size and stone: facts about its height, its granite or its cloth (the kiswah) come from history books, not from the hadith above.
- Worship: Muslims face the Kaaba but do not worship it. ‘Umar (may Allah be pleased with him) said even of the Black Stone, “I know that you are a stone that can neither harm nor benefit” (see our Black Stone article).
- Legends: many stories about the Kaaba before Ibrahim circulate online. Where no authentic source supports them, we leave them out.
Questions people ask
Who built the Kaaba?
The Quran says Prophet Ibrahim and his son Isma’il raised its foundations (Al-Baqarah 2:127). Later the Quraysh rebuilt it short of Ibrahim’s foundations, as the Prophet ﷺ told ‘A’ishah (Sahih al-Bukhari 1583).
Why do Muslims face the Kaaba when they pray?
Because Allah commanded it: the Quran tells the Prophet ﷺ and the believers to turn their faces toward al-Masjid al-Haram in prayer (Al-Baqarah 2:144). Facing one House unites every Muslim in one direction; the worship is for Allah alone.
Will the Kaaba ever be destroyed?
The Prophet ﷺ said a man from Abyssinia called Dhus-Suwayqatayn will destroy the Kaaba (Sahih al-Bukhari 1591), something he foretold about the future. He also said the House will still be visited for Hajj and Umrah even after Gog and Magog come out (Sahih al-Bukhari 1593).
Key lessons

- The Kaaba was the first house set up for the worship of Allah (Quran 3:96).
- Ibrahim and Isma’il raised its foundations and asked Allah to accept it.
- It was the first mosque on earth; al-Aqsa came forty years later.
- The Prophet ﷺ cleared 360 idols from around it.
- Hajj and Umrah to it will continue until near the end of time.
Ibrahim and Isma’il built a house and asked only that Allah accept it. Today, try making their dua part of your own work: Rabbana taqabbal minna, “Our Lord, accept from us.”
Save this to Pinterest so you can share the story of the Kaaba with your family

Share the reward. Send this article to someone who needs it today — teaching a hadith or dua can become a lasting good deed for you, in shaa Allah.






