Traveling to visit the three mosques:
A recommended journey may not be made to any mosque except the three mosques, because the honor of building these three mosques belongs to exalted prophets (peace be upon them). Among them, the Sacred Mosque (Masjid al-Haram) was built by Ibrahim (peace be upon him) and Isma’il (peace be upon him), and the Prophet’s Mosque (Masjid al-Nabawi) was built by the Seal of the Messengers, Muhammad, the Messenger of Allah ﷺ, and its foundation is on taqwa itself. The second mosque is Ilya’, that is, Masjid al-Aqsa, which was built by Ishaq (peace be upon him), even before the time of Sulayman (peace be upon him).
It is narrated in the Sahihayn from Abu Dharr (may Allah be pleased with him) that he said: I asked the Messenger of Allah ﷺ which mosque was built first. He ﷺ said: The Sacred Mosque. I asked: Which one after that? He said: Masjid al-Aqsa.
I then asked: How long was the interval between the building of the Sacred Mosque and Masjid al-Aqsa? He ﷺ said: Masjid al-Aqsa was built forty years later. After this conversation he ﷺ said: Wherever the time for prayer overtakes you, pray; that place is a mosque for you. In Sahih al-Bukhari these words are reported:
فإن فيه الفضل
“Praying in that very place is better.”
His practice too was the same: wherever the time for prayer came, he would pray at once.
Masjid al-Aqsa existed in the time of Ibrahim (peace be upon him) as well, but Sulayman (peace be upon him) enlarged it. So these three mosques were built by the prophets (peace be upon them) so that they themselves and other people might pray in them. Thus, when the prophets (peace be upon them) intended to pray in these mosques, traveling to them in order to worship there was made legislated, so that the prophets (peace be upon them) would be followed. Just as, when Ibrahim (peace be upon him) had built the House of Allah, he was commanded by Allah to call people to perform Hajj to it; so from the time of Ibrahim (peace be upon him) until the sending of the Messenger of Allah ﷺ, people kept coming to Makkah in droves, traveling with the intention of performing Hajj to the House of Allah. Although Hajj was not obligatory upon them, just as it was not obligatory in the early period of Islam either. The obligation of Hajj came in the last period of the Messenger of Allah ﷺ, when Surah Al Imran was revealed.
In Surah al-Baqarah, the command to complete Hajj and ‘Umrah is for the one who has begun Hajj or ‘Umrah. For this reason, according to the majority of scholars, completing a voluntary Hajj or ‘Umrah is obligatory. However, some people think that the purpose of “completion” here is to indicate obligation. But in our opinion the first position is correct.