Building of the Ka`bah and the Proclamation of the Hajj
This is a rebuke to those among Quraysh who worshipped others than Allah and joined partners with Him in the place which from the outset had been established on the basis of Tawhid and the worship of Allah Alone, with no partner or associate. Allah tells us that He showed Ibrahim the site of the `Atiq House, i.e., He guided him to it, entrusted it to him and granted him permission to build it. Many scholars take this as evidence to support their view that Ibrahim was the first one to build the House and that it was not built before his time. It was recorded in the Two Sahihs that Abu Dharr said, "I said, `O Messenger of Allah ﷺ, which Masjid was the first to be built' He said,
The third command given to Sayyidna Ibrahim (علیہ السلام) was أَذِّن فِي النَّاسِ بِالْحَجِّ (Announce among people about the obligation of Hajj - 22:2'7). Ibn Abi Hatim has related from Sayyidna Ibn ` Abbas ؓ that when Sayyidna Ibrahim (علیہ السلام) was commanded by Allah to make this proclamation, he submitted that the place where he stood was an uninhabited desolate plane with nobody to hear the proclamation whereas he lacked the means to convey it to the populated areas. Allah Ta’ ala then told him that he was required only to make the proclamation and the responsibility for conveying it to the four corners of the world rested with Himself, that is Allah Ta’ ala. Thereupon Sayyidna Ibrahim (علیہ السلام) stood at مقام ابراھیم (Station of Ibrahim) and made the proclamation and Allah Ta’ ala magnified his voice so that it was heard all round the earth. It is also related that he made the proclamation from the top of the mount Abu Qubais (جبل أبی قبَیس). He put his fingers in his ears, turned his face in four directions and called out "0 people! Allah has established His House and made it obligatory upon you to make pilgrimage to it. So obey the command of your Lord."
It is also mentioned in this narration that Allah Ta’ ala so decreed that the announcement was heard miraculously all over the world, not only by the people living then, but also by all those yet to be born upto the Day of Resurrection. And all those who are destined to perform the pilgrimage responded to the call with the words اللَّھُمَّ لَبَّیک لَبَّیک . Sayyidna Ibn ` Abbas ؓ says that the Talbiyah during the pilgrimage has its origin in this response to the call of Sayyidna Ibrahim (علیہ السلام) . (Qurtubi, Mazhari)
Further on, the verse describes the tradition which has been established for all times as a result of the proclamation of Sayyidna Ibrahim namely يَأْتُوكَ رِجَالًا وَعَلَىٰ كُلِّ ضَامِرٍ يَأْتِينَ مِن كُلِّ فَجٍّ عَمِيقٍ (22:28) meaning that people will come to Baitullah from the four corners of the earth, some on foot and others on their mounts, which will become lean because of the long distances traversed by them. From that remote time until today, though thousands of years have elapsed, people come to Baitullah to perform pilgrimage, just as they did in the earliest times. All the prophets who came after Sayyidna Ibrahim (علیہ السلام) and their followers strictly observed this tradition. During the long period of ignorance after Sayyidna ` Isa' (علیہ السلام) ، the Arabs, even though they lapsed into the evils of idolatry, yet they continued to perform very faithfully all the rituals of the pilgrimage precisely as they had inherited them from the time of Sayyidna Ibrahim (علیہ السلام) .
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 26–28
The history of Abraham dates back four thousand years. During the period in which he lived polytheism was prevalent throughout the known and inhabited world, and had thus come to be a permanent feature of life, continuing from one generation to the next, without any break. Ultimately, the stage was reached when no new born child could learn anything other than polytheism from its surroundings. Abraham was born in Iraq. God commanded him to leave the populated areas of Iraq, Syria and Egypt and go to the uninhabited area of Hijaz and settle his progeny in Arabia. The idea behind settling in a desert area was that here, in an isolated place, a new generation could be brought up, cut off from the influence of polytheism prevalent in the inhabited world of the time. In accordance with this plan of God, Abraham settled his progeny in a place known at present as Makkah, but which was totally unpopulated in those days. At that time, Abraham built a mosque (the Kabah) which was to be the centre of worship for the one God by the new generation, and finally by the whole world.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.