Hajj and its rites were first ordained by Allah in the time of the Prophet lbrahim [Abraham] and he was the one who was entrusted by Allah to build the Kaba – the House of Allah – along with his son Ismail [Ishmael] at Makkah. Allah described the Kaba and its building as follows:
“And remember when We showed Ibrahim the site of the [Sacred] House [saying]: Associate not anything [in worship with Me and purify My House for those who circumambulate it [i.e. perform tawaaf] and those who stand up for prayer and those who bow down and make prostration [in prayer etc.].” : [Surah Al-Hajj 22:26]
During the Hajj period itself, the atmosphere around the sacred precincts of the Kaba was like a circus. Men and women would go round the Kaba naked, arguing that they should present themselves before Allah in the same condition they were born. Their prayer became devoid of all sincere remembrance of Allah and was instead reduced to a series of hand clapping, whistling and the blowing of horns. Even the talbiah  was distorted by them with the following additions: ‘No one is Your partner except one who is permitted by you. You are his Master and the Master of what he possesses’.
Singing, drinking, adultery and other acts of immorality was rife amongst the pilgrims and the poetry competitions, which were held, were a major part of the whole Hajj event. In these competitions, poets would praise the bravery and splendor of their own tribesmen and tell exaggerated tales of the cowardice and miserliness of other tribes. Competitions in generosity were also staged where the chief of each tribe would set up huge cauldrons and feed the pilgrims, only so that they could become well-known for their extreme generosity.
“Our Lord! Send amongst them a Messenger of their own, who shall recite unto them your aayaat (verses) and instruct them in the book and the Wisdom and sanctify them. Verily you are the ‘Azeezul-Hakeem [the All-Mighty, the All-Wise].” : [Surah Al-Baqarah 2:129]
Not only did the Prophet rid the Kaba of all its impurities, but he also reinstated all the rites of Hajj which were established by Allah’s Permission, in the time of Prophet Ibrahim. Specific injunctions in the Quran were revealed in order to eliminate all the false rites which had become rampant in the pre-Islamic period. All indecent and shameful acts were strictly banned in Allah’s statement:
“There is to be no lewdness nor wrangles during Hajj.” : [Surah al-Baqarah 2:197]
Competitions among poets in the exaltations of their forefathers and their tribesmen’s achievements were all stopped. Instead, Allah told them:
“And when you have completed your rites [of Hajj] then remember Allah as you remember your forefathers; nay with a more vigorous remembrance.” : [Surah al-Baqarah 2:200]
Competitions in generosity were also prohibited. Of course, the feeding of the poor pilgrims was still encouraged as this was done during the time of Prophet Ibrahim but Allah commanded that the slaughtering of the animals which was done for this purpose should be done seeking the pleasure of Allah rather than fame and the praise of the people. He said:
“So mention the name of Allah over these animals when they are drawn up in lines. Then, when they are drawn on their sides [after the slaughter], eat thereof and feed the beggar who does not ask, and the beggar who asks.” : [Surah al-Hajj 22:36]
As for the deplorable practice of spattering blood of the sacrificed animals on the walls of the Kaba and hanging their flesh on alters, then Allah clearly informed them that:
“It is neither their meat nor their blood that reaches Allah, but it is Taqwaa (piety) from you that reaches Him.” : [Surah al-Hajj 22:37]
The Prophetalso put a stop to the practice of circling the Kaba in a state of nudity and the argument that the pagans put forward to justify this ritual was sharply rebutted in Allah’s question:
“Say: Who has forbidden the adornment [i.e. clothes] given by Allah which He has produced for His Slaves?” : [Surah al-A’raaf 7:32]
Another custom which was prohibited through the Quran was that of setting off for Hajj without taking any provisions for the journey. In the pre-Islamic period, some people who claimed to be mutawakkiloon (those having complete trust in Allah) would travel to perform Hajj begging for food through the whole journey. They considered this form of behavior a sign of piety and an indication of how much faith they had in Allah. However Allah told mankind that to have sufficient provisions for the journey was one of the preconditions for making Hajj. He said:
“And take a provision [with you] for the journey, but the best provision is at-Taqwaa (piety).” : [Surah al-Baqarah 2:197]
In this way, all the pre-Islamic practices, which were based on ignorance, were abolished and Hajj was once more made a model of piety, fear of Allah, purity, simplicity and austerity. Now, when the pilgrims reach the Kaba, they no longer find the carnivals and the frolic and frivolity that had once occupied the minds of the pilgrims there before. Now, there is the remembrance of Allah at every step and every action and every sacrifice was devoted to Him alone. It was this kind of Hajj that was worthy of the reward of paradise, as the Prophet said: “The reward for an accepted Hajj is nothing less than paradise.”
May Allah grant us all the ability to visit His House and perform the Hajj in the manner of the Prophet Muhammad. Aameen.
Source: Invitation to Islam, Issue 1, May 1997