
The origin of Hajj is even earlier than the establishment of Islam as a full way of life in the era of the Prophet Muhammad ﷺ. According to the Islamic faith, the origins of this pilgrimage can be traced to Prophet Ibrahim (AS), whose obedience, sacrifice, and devotion came to be the main focus of the rituals that are still practiced by millions of Muslims. What was originally a holy calling that was associated with the Kaaba has evolved over the centuries, and it was passed on from Ibrahim (AS) to the Prophet Muhammad ﷺ and onto the modern world as one of the biggest worship gatherings in the world yearly.
Hajj is not a mere trip to Makkah. It is the legacy of spirituality. Each of the great rites has its memory in it: the Kaaba, the Safa-Marwah motion, the sacrifice, the congregation in Mina, and the standing at Arafat. These are not isolated rituals. They are bound to a sacred history that makes Hajj both profound and emotionally charged.
The Beginning of Hajj in the Time of Prophet Ibrahim (AS)
The Islamic tradition states that the birth of Hajj is very much associated with Prophet Ibrahim (AS), his wife Hajar, and his son Ismail (AS). According to the Quran, Ibrahim and Ishmael founded the Kaaba, and Islamic tradition considers that to be the center of the holy history of Makkah. Later, the Kaaba came to be the center of pilgrimage and is the most sanctified place in Islam today.
This background is important since Hajj is not introduced in Islam as an act of worship that is made in seclusion. It is interpreted as the resurgence and continuation of a worship tradition that was associated with Ibrahim (AS). The relation to him is even apparent in the rites themselves. Pilgrims pray near Maqam Ibrahim, remember the sacrifice associated with Ibrahim (AS), and follow a pattern of devotion that carries his legacy through every generation.
Hajar, Safa, and Marwah, and the Spirit of Trust
One of the most moving parts of the history of Hajj is the memory of Hajar searching for water between the hills of Safa and Marwah. The sense of urgency, trust, and utter dependence on Allah is still maintained in the rite of sa’i, in which pilgrims walk between the two locations as a part of Hajj and Umrah. What had been a desperate search on the part of a mother was one of the everlasting symbols of faith, perseverance, and divine mercy.
This is one of the reasons why Hajj has its unique nature. Its rituals are not abstract. They are born of lived experiences of sacrifice, desire, and obedience. The passage between Safa and Marwah is a reminder that destination is not the only thing in pilgrimage. It is also about trust through difficulty and worship through effort.
The Kaaba in Pre-Islamic Times
The Kaaba had been a significant sanctuary and pilgrimage site in Arabia before the arrival of Islam in its ultimate form. It was a polytheist refuge and a pilgrimage destination of the inhabitants of the Arabian Peninsula prior to the emergence of Islam. The uncontaminated monotheistic heritage of Ibrahim (AS) had been lost over time, and the idolatry was linked to the Kaaba.
This era is significant in the history of Hajj as it demonstrates that pilgrimage to Makkah was practiced even prior to Prophet Muhammad ﷺ, but the meaning and the practice had been distorted. The location was sacred, but the form of worship there practiced was no longer an expression of the initial call of pure worship to one God. This change in history prepared the ground for the restoration that would later happen with the Prophet ﷺ.
Prophet Muhammad ﷺ and the Revival of Hajj
Prophet Muhammad ﷺ was the one to shape and mold the Hajj as we know it presently. The pattern of pilgrimage rites was set by the Prophet Muhammad, although the religious origins of the pilgrimage are earlier through Ibrahim (AS). This implies that Hajj has a primordial source and a prophetic fulfillment.
When Makkah was conquered in 630 CE, Muhammad ﷺ ordered the destruction of the idols in the Kaaba and had the sanctuary cleansed of polytheistic elements. It was not just a political moment. It saw the rejection of the Kaaba to pure monotheistic worship, and the pilgrimage reverted to its true religious purpose. Since then, Hajj has been deeply integrated into Islamic teaching as a devotion to Allah only.
The pilgrims’ rites that are done nowadays are in reference to the restoration. The tawaf around the Kaaba, sa’i between Safa and Marwah, meeting at Mina and Arafat, the sacrifice, and the act of stoning are all within the shape practiced and taught by the Prophet Muhammad ﷺ. The building which Muslims see on the planet is thus historic and prophetic, bearing the memory of Ibrahim (AS) and the teachings of Muhammad ﷺ in union.
Hajj in the Modern World
Hajj is currently amongst the biggest regular religious assemblies in the world. The scale in itself demonstrates the way the pilgrimage has shifted its ancient origins to the global act of worship, uniting Muslims of all regions, languages, and origins.
Planning, transport systems, regulation, and infrastructure are also shaping modern Hajj as it has never been before. Saudi officials have greatly expanded the Grand Mosque and built transport infrastructure, such as access to the railway between the sacred places, due to pressure of crowds and safety. Such changes have altered the practical dimension of pilgrimage, without altering its spiritual essence.
The last few years have demonstrated that Hajj is still able to address the realities of the world. The pilgrimage was severely cut in the COVID-19 years, resumed freely in 2023, and attracted approximately 1.67 million pilgrims in 2025, the lowest non-pandemic turnout in roughly three decades. Despite such changes, Hajj is one of the most significant manifestations of Muslim unity and permanence through time.
Why the History of Hajj Still Matters
Learning about the history of Hajj brings more sense to each stage of the pilgrimage. It shows that Hajj is not simply an annual obligation placed on a calendar. It is a sacred inheritance. The rituals maintain the obedience of Ibrahim (AS), the trust of Hajar, the devotion associated with Ismail (AS), and the ultimate prophetic leadership of Muhammad ﷺ.
It is that continuity that makes Hajj so strong. A pilgrim nowadays does not start a new way. The pilgrim comes to an ancient one, walks in remembrance of prophets and is restored by divine direction. Since the origins of Kaaba to the systematic pilgrimage of the modern world, Hajj has been focused on worship, humility, sacrifice and submission to Allah.
Final Thoughts
The Hajj history traces back to Prophet Ibrahim (AS) up to the current times and contains some of the most sacred events in Islamic history. The Kaaba, pilgrimage rituals and the pilgrimage journey itself are all echoes of a tradition that was initially based on obedience and subsequently refined and refined in action by Prophet Muhammad ﷺ. Hajj is today what it was always at its core, a pilgrimage of worship with the connection of remembrance, sacrifice and unity, even with modern systems and millions of pilgrims.