The Limits of Traveling for Ziyarah:
These three mosques, the Prophet’s Mosque, the Sacred Mosque and the Aqsa Mosque, are the ones to which traveling (with a specific intention) for ziyarah is sanctioned by the Sunnah; traveling for the ziyarah of any mosque other than these is forbidden.
It is always necessary to keep in mind the important difference between the lawful and unlawful ziyarah of graves, such as taking the graves of prophets and righteous people as places of prostration, or praying facing a grave, or making a grave an object of worship and setting it apart for worship rituals. In the hadith narrated in the Sahihayn, the Prophet ﷺ said:
لا تشد الرحال إلا إلى ثلاثة مساجد المسجد الحرام ومسجدي هذا والمسجد الأقصى
“Do not undertake a journey for the ziyarah of any mosque except three mosques (that is, the Sacred Mosque, the Prophet’s Mosque and the Aqsa Mosque).”
It is mentioned that once Abu Hurayrah (may Allah be pleased with him) went to Mount Tur, where Allah spoke to Musa ibn Imran (peace be upon him). On his return he met Busrah ibn Abi Busrah al-Ghifari (may Allah be pleased with him), who said: “Had I known beforehand, you would never have gone there, because I heard the Messenger of Allah ﷺ say:
لا تعمل المطي إلا إلى ثلاثة مساجد المسجد الحرام ومسجدي هذا ومسجد بيت المقدس
“Mounts are not to be driven except to three mosques: (1) the Sacred Mosque, (2) this mosque of mine (that is, the Prophet’s Mosque) and (3) the mosque of Bayt al-Maqdis.””
These are the three mosques to which a special journey for worship, ziyarah and seeking blessing is sanctioned by the Sunnah, such as praying, reciting the Noble Quran, engaging in dhikr and remembrance, making supplication and performing i’tikaf. Of these three mosques, only the tawaf of the Sacred Mosque is sanctioned by the Sunnah. As for a person who prays in any mosque other than these three (without having traveled specifically to worship in that mosque), this act of his too, in light of the authentic hadiths, will be counted among the most excellent of deeds. As is reported from the Messenger of Allah ﷺ in the Sahihayn:
من تطهر فى بيته ثم خرج إلى المسجد كانت خطواته إحداها تحط خطيئة والأخرى ترفع درجة والعبد فى صلاة ما دام ينتظر الصلاة والملائكة تصلي على أحدكم ما دام فى مصلاه الذى صلى فيه تقول اللهم اغفر له اللهم ارحمه ما لم يحدث
“Whoever purifies himself in his house and then goes to the mosque, one of his steps erases a sin and the other raises him a degree; and the servant is considered to be in prayer as long as he waits for the prayer; and the angels pray for any of you as long as he remains in the place where he prayed, saying: O Allah, forgive him, O Allah, have mercy on him (they continue to make these supplications) as long as he does not break his wudu’.”
But if someone travels from one city to another with the intention of reaching a mosque there, such as setting out from Damascus to Egypt, or from a distant city for the ziyarah of the Quba Mosque, then such a journey is unlawful by the agreement of the four imams; and if he vows to make such a journey, fulfilling it will not be obligatory by the agreement of the four imams. Only a somewhat weak opinion is reported from al-Layth ibn Sa’d that such a vow should be fulfilled. Among the companions of Imam Malik (may Allah have mercy on him), only Ibn Maslamah (may Allah have mercy on him) considers it necessary to fulfil a vow to travel to the Quba Mosque. However, for a person who goes to Madinah, it is recommended to go to the Quba Mosque and pray there, because going from Madinah to the Quba Mosque cannot be counted as a journey. This is because it was the practice of the Messenger of Allah ﷺ to go to the Quba Mosque every Saturday, sometimes on foot and sometimes riding, and to pray two rak’ahs there.
In this regard, there is also a saying of his ﷺ:
من تطهر فى بيته ثم أتى مسجد قباء فصلى فيه صلاة كان له كأجر عمرة
“Whoever purifies himself at his home and goes to the Quba Mosque (and prays there) receives the reward of performing an ‘umrah.””
Likewise, Sa’d ibn Abi Waqqas (may Allah be pleased with him) and Abdullah ibn Umar (may Allah be pleased with them both) used to say:
“The reward of praying in Masjid Quba’ is equal to performing an Umrah.”
If someone vows to perform Hajj or Umrah, all the scholars of the Ummah agree that he must fulfil this vow. If someone vows to go to the Prophet’s Mosque or to Bayt al-Maqdis, the scholars have two opinions about such a vow:
➊ According to one opinion of Imam Abu Hanifa (may Allah have mercy on him) and Imam al-Shafi’i (may Allah have mercy on him), fulfilling this vow is not necessary, because the Shari’ah has not made it obligatory.
➋ According to Imam Malik (may Allah have mercy on him), Imam Ahmad ibn Hanbal (may Allah have mercy on him) and the other opinion of Imam al-Shafi’i (may Allah have mercy on him), fulfilling such a vow is necessary, because it is obedience to Allah, and regarding obedience to Allah, the Messenger of Allah ﷺ said in Sahih al-Bukhari:
من نذر أن يطيع الله فليطعه ومن نذر أن يعصي الله فلا يعصه
“Whoever vows to obey Allah should obey Him, and whoever vows to disobey Allah should not disobey Him.”
If someone vows to travel to any mosque other than these three mosques, or vows to travel merely to visit the blessed grave of the Messenger of Allah ﷺ or the grave of any other prophet, saint or righteous person, then by the agreement of the Imams it is not necessary to fulfil this vow, because the Messenger of Allah ﷺ did not command this kind of travel; rather, he said:
لا تشد الرحال إلا إلى ثلاثة مساجد المسجد الحرام ومسجدي هذا والمسجد الأقصى
“Do not undertake a journey to any mosque except three mosques, that is, the Masjid al-Haram, this mosque of mine, and the Masjid al-Aqsa.”
Yes, it is obligatory to fulfil a vow that contains obedience to the Messenger ﷺ. Imam Malik (may Allah have mercy on him) and several other Imams have stated explicitly that whoever vows to travel to Madinah Munawwarah, intending to pray in the Prophet’s Mosque, should fulfil his vow; and if his intention is not to pray in the mosque but only to visit the blessed grave, then it will not be necessary for him to fulfil his vow, because the Messenger of Allah ﷺ said:
لا تعمل المطي إلا إلى ثلاثة مساجد
“Do not set out on mounts except to three mosques.”
This issue is also supported by books such as al-Mudawwanah and al-Jallab.
Qadi Isma’il ibn Ishaq, discussing this in al-Mabsut, quotes the statement of Imam Malik (may Allah have mercy on him): “Whoever vows to go to the Prophet’s Mosque should fulfil his vow, because the purpose of going to a mosque is only to pray. And whoever vows to go to Madinah Munawwarah and intends to pray in the Prophet’s Mosque should fulfil his vow; but if the aim is to visit Jannat al-Baqi’ or the graves of the martyrs of Uhud, then it is not necessary for such a person to fulfil his vow, because undertaking a journey to other than the three aforementioned mosques is not prescribed.”
Not a single one of the Imams of Islam has opposed the above statement of Imam Malik (may Allah have mercy on him); rather, the writings of other Imams support the said Imam. Regarding undertaking a journey to visit a graveyard, two opinions are reported from Imam al-Shafi’i (may Allah have mercy on him) and his companions: that this journey is forbidden, or that it is permissible.
The earlier companions of Imam al-Shafi’i (may Allah have mercy on him) and Imam Ahmad (may Allah have mercy on him) say that this journey is forbidden, but disagreement arose among the later companions. The reason for the disagreement was that in the hadith ”لا تشد الرحال“ the wording is in the form of a statement, whose meaning is a prohibition, which proves that this journey is forbidden.
Some said: in this hadith the wording is a prohibition, which means that this journey is neither sunnah, nor obligatory, nor recommended, but permissible. This journey would be just like travelling to a city for the purpose of trade.
In reply to them we say that when someone travels for trade, worship is not the intention; rather, worldly purposes, which are permissible, are in view. Visiting graves is different, for the very purpose of visiting graves is worship, and worship can only be through an obligatory or a recommended act. Since it has been established by consensus that travelling to visit graves is neither obligatory nor recommended, whoever travels to visit graves as an act of worship will be called an innovator and one who opposes the consensus, because it is not permissible to introduce new things into worship. Yes! One who does not know will be considered excused, but after the sunnah way becomes known to him, he should not oppose the sunnah, nor do any act that the Prophet ﷺ forbade, such as praying at the time of sunrise and sunset, or fasting on the days of the two Eids, and so on, even though prayer and fasting are among the best of deeds. If he does it before knowing, he will not be sinful. All the schools of thought of the Muslims agree that travelling to visit graves is not recommended. Moreover, not a single one of the Imams of Islam is reported to have said that travelling to a graveyard is recommended. If any of the followers of the Imams has said so, it is not far-fetched, but not one of the mujtahid Imams called it recommended, and even if, hypothetically, it were reported from some Imam, it would be considered a third opinion on this subject, but remember that this opinion would be against the sunnah and the consensus of the Companions.