Haji was first established by Prophet Ibrahim (Abraham) when Allah commanded him to build the Kabah in Mekkah and call humanity to ibadah haji. The rites were later restored by Prophet Muhammad (shallallahu alaihi wa sallam) during his farewell Haji in 632 CE, forming the basis of the ibadah haji Muslims perform today.
The history of Haji begins with Prophet Ibrahim (Abraham), shallallahu alaihi wa sallam, who is regarded as the father of monotheism in Islam, Christianity, and Judaism. According to Islamic tradition, Allah commanded Ibrahim to leave his wife Hajar (Hagar) and infant son Ismail (Ishmael) in the barren valley of Mekkah. It was here that the miraculous spring of Zamzam burst forth to save them from thirst. Years later, Allah instructed Ibrahim and Ismail to build the Kabah as the first house of worship dedicated solely to the One God. The Al-Quran records this in Surah Al-Baqarah (2:127): 'And when Ibrahim and Ismail were raising the foundations of the House, [saying], Our Lord, accept [this] from us. Indeed, You are the Hearing, the Knowing.' After completing the construction, Allah commanded Ibrahim to proclaim the Haji to all of humanity: 'And proclaim to the people the Haji; they will come to you on foot and on every lean camel; they will come from every distant pass' (Al-Quran 22:27). This divine proclamation established Haji as a universal act of worship that has continued for thousands of years.
In the centuries following Ibrahim's era, the pure monotheistic practices of Haji became corrupted as the people of the Arabian Peninsula gradually fell into idolatry. By the time of Prophet Muhammad (shallallahu alaihi wa sallam), the Kabah housed 360 idols, and the rituals of Haji had been mixed with pagan customs, including naked circumambulation and the clapping of hands instead of shalat. The Quraysh tribe, as custodians of the Kabah, controlled the ibadah haji and profited enormously from the annual influx of jamaah haji from across Arabia. When Prophet Muhammad conquered Mekkah in 630 CE (8 AH), he cleansed the Kabah of all idols and restored the monotheistic worship of Allah. The following year, he sent Abu Bakr to lead the Haji and announced that no polytheist would be allowed to perform Haji thereafter. In 632 CE (10 AH), Prophet Muhammad performed his only Haji, known as Hajjat al-Wada (the Farewell Pilgrimage), which established the definitive rituals that Muslims follow to this day. During this ibadah haji, he delivered his famous Farewell Sermon at Arafah, addressing over 100,000 companions on matters of equality, justice, and the completion of the religion of Islam.
After Nabi's passing, the Rightly Guided Caliphs maintained the Haji and ensured safe passage for jamaah haji. Under Umar ibn al-Khattab, the Mataf (circumambulation area) around the Kabah was expanded for the first time by purchasing and demolishing surrounding houses. The Umayyad and Abbasid caliphates further developed the infrastructure of Mekkah and Madinah, building roads, wells, and rest stations along major ibadah haji routes from Iraq, Syria, Egypt, and Yemen. The Ottoman Empire, which controlled the Hijaz from 1517 to 1916, invested heavily in the Haji infrastructure. Sultan Suleiman the Magnificent rebuilt the Kabah's walls and renovated the Masjidil Haram. The Ottomans established the famous Surre Alayi, an elaborate annual caravan from Istanbul carrying gifts, provisions, and the Kiswa (the cloth covering of the Kabah) to Mekkah. They also built the Hejaz Railway in 1908, connecting Damascus to Madinah, which dramatically reduced the journey time for jamaah haji from the Levant and Turkey. Throughout these centuries, Haji remained a perilous journey; many jamaah haji died from disease, bandits, extreme panas, and dehidrasi along the way. The ibadah haji could take months or even years of travel.
The modern transformation of Haji began when the Kingdom of Arab Saudi was founded in 1932. King Abdulaziz ibn Saud initiated the first major expansion of the Masjidil Haram in 1955, increasing its capacity from 50,000 to 400,000 worshippers. King Fahd's expansion in the 1980s and 1990s added air-conditioned shalat halls, escalators, and the now-iconic minarets, bringing capacity to over 800,000. The most ambitious project began under King Abdullah in 2011 and continues today: the Third Saudi Expansion aims to accommodate over 2.2 million worshippers simultaneously in the Masjidil Haram. This includes the massive Mataf expansion, new multi-story structures, advanced crowd-management systems, and the Jamarat Bridge complex in Mina, which replaced the old ground-level stoning area and dramatically reduced the deadly stampedes that had plagued earlier years. The Haramain High-Speed Railway, opened in 2018, now connects Mekkah, Madinah, and Jeddah, allowing jamaah haji to travel between the holy cities in approximately two hours. Modern Haji management also involves sophisticated logistics: tent cities in Mina with fire-resistant structures, mist-cooling systems throughout the holy sites, thousands of medical stations, and an extensive security apparatus. The annual jamaah haji count has grown from around 50,000 in the 1930s to over 2.5 million in recent years.
The 21st century has brought both unprecedented challenges and innovations to the Haji. The COVID-19 pandemic in 2020 led to the most restricted Haji in modern history, with only 1,000 jamaah haji permitted — a stark contrast to the 2.5 million who attended the previous year. The pandemic accelerated the adoption of digital technologies: electronic permits, health screening apps, crowd-monitoring AI, and robotic sanitation systems became standard features of Haji management. Arab Saudi's Vision 2030 plan includes ambitious goals for the ibadah haji: increasing annual Umrah pengunjung to 30 million, developing the Madinah Knowledge Economic City, and enhancing jamaah haji experiences through smart city technologies. The Neom and Red Sea development projects also aim to create new tourism corridors that could benefit jamaah haji. Climate change poses a growing concern, as rising temperatures in the Arabian Peninsula threaten jamaah haji safety during the summer months when Haji falls on those years. Saudi authorities have responded with expanded cooling infrastructure, mandatory panas advisories, and research into climate-resilient ibadah haji management. The spiritual essence of Haji, however, remains unchanged from Ibrahim's time: millions of Muslims from every corner of the world, regardless of race, wealth, or status, gather in simple white garments to answer the eternal call of 'Labbayk Allahumma Labbayk' — Here I am, O Allah, here I am.