Visiting the Graves of the Believers Is Recommended
The majority of the early generations (salaf) of the Ummah held that visiting the graves of the believers is recommended, so that supplication may be made for them and salutations sent upon them. Just as it was the practice of the Messenger of Allah ﷺ to go to Jannat al-Baqi’ and supplicate for them there. It is also established in the narration of the two Sahihs that:
”إنه خرج إلى شهداء أحد فصلى عليهم صلاته على الموتى كالمودع للأحياء والأموات“
“He went to the graves of the martyrs of Uhud and supplicated for them in the way a funeral prayer is offered over an ordinary deceased person, as though he were bidding farewell to all the living and the dead.”
The Sunnah Supplication for Visiting Graves
It is in Sahih Muslim that the Messenger of Allah ﷺ used to teach the noble Companions (may Allah be pleased with them) this supplication for visiting graves:
السَّلَامُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ وَإِنَّا إِنْ شَاءَ اللَّهُ بِكُمْ لَاحِقُونَ يَرْحَمُ اللَّهُ الْمُسْتَقْدِمِينَ مِنَّا وَمِنْكُمْ وَالْمُسْتَأْخِرِينَ نَسْأَلُ اللَّهَ لَنَا وَلَكُمُ الْعَافِيَةَ اللَّهُمَّ لَا تَحْرِمْنَا أَجْرَهُمْ وَلَا تَفْتِنَّا بَعْدَهُمْ وَاغْفِرْ لَنَا وَلَهُمْ
“O believers! Peace be upon you from Allah. We too, if Allah wills, are going to join you. May Allah have mercy on you and on all of us. We ask Allah for well-being for ourselves and for you. O Allah! Do not deprive us of their reward, and do not put us to trial after them. O Allah! Forgive them and all of us.”
This was the Sunnah way of visiting the graves of the believers. As for the disbelievers, visiting their graves is also permitted, so that the remembrance of the Hereafter may be refreshed. However, seeking forgiveness for them is not permissible. In Sahih Muslim, an incident of the Messenger of Allah ﷺ himself is narrated:
أَنَّهُ زَارَ قَبْرَ أُمِّهِ فَبَكَى وَأَبْكَى مَنْ حَوْلَهُ وَقَالَ اسْتَأْذَنْتُ رَبِّي فِي أَنْ أَزُورَ قَبْرَهَا فَأَذِنَ لِي وَاسْتَأْذَنْتُهُ فِي أَنْ أَسْتَغْفِرَ لَهَا فَلَمْ يَأْذَنْ لِي فَزُورُوا الْقُبُورَ فَإِنَّهَا تُذَكِّرُكُمُ الْآخِرَةَ
“The Messenger of Allah ﷺ went to the grave of his mother, wept there, and made his companions weep as well. Then the Messenger of Allah ﷺ said: I asked Allah for permission to visit her grave, and it was granted. I asked for permission to seek forgiveness for her, and it was not granted. So visit the graves, for they refresh the remembrance of the Hereafter.”
Whose Opinion Should Be Followed When Scholars Differ?
In a matter in which the scholars differ, the statement of the one who has a legal proof from the Shari’ah should be accepted. It may be that one of them has no Shari’ah evidence. The truth is that the scholars alone are the true heirs of the prophets. Allah the Exalted says:
“Remember the incident when David and Solomon were both judging in the case of a field, in which the sheep of other people had spread during the night, and We were witnessing their judgment Ourselves. At that time We made Solomon understand the correct judgment, although We had granted judgment and knowledge to both of them.”
The Three Types of Grave Visitation in Terms of Intention and Action
The three statements above relate to different considerations.
◈ If visiting graves is bound up with shirk, lying, wailing, lamentation (nawh) and the like, then such a visit is forbidden by consensus, like the practice of the polytheists and of Allah’s disobedient servants. For the religion pleasing to Allah is Islam, which is to submit one’s head to the commands of Allah, to accept His decision wholeheartedly, to obey whatever He commands, and to love whatever He loves. We act upon this and call people to it, and our trust is in that One, Unique Being alone. We are content with Allah as Lord, Islam as religion, and Muhammad ﷺ as Prophet, and we affirm this in our prayers:
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ
“You alone we worship, and You alone we ask for help.”
We also affirm this because Allah says:
فَاعْبُدْهُ وَتَوَكَّلْ عَلَيْهِ
“So, O Prophet, worship Him and put your trust in Him.”
يَا أَيُّهَا الَّذِينَ آمَنُوا اسْتَعِينُوا بِالصَّبْرِ وَالصَّلَاةِ ۚ إِنَّ اللَّهَ مَعَ الصَّابِرِينَ
“O you who have believed! Seek help through patience and prayer. Allah is with the patient.”
وَأَقِمِ الصَّلَاةَ طَرَفَيِ النَّهَارِ وَزُلَفًا مِّنَ اللَّيْلِ ۚ إِنَّ الْحَسَنَاتِ يُذْهِبْنَ السَّيِّئَاتِ ۚ ذَٰلِكَ ذِكْرَىٰ لِلذَّاكِرِينَ ﴿١١٤﴾ وَاصْبِرْ فَإِنَّ اللَّهَ لَا يُضِيعُ أَجْرَ الْمُحْسِنِينَ ﴿١١٥﴾
“And establish prayer at the two ends of the day and at some hours of the night. Indeed, good deeds remove evil deeds. This is a reminder for those who remember Allah. And be patient. Allah never lets the reward of those who do good go to waste.”
◈ The second type of grave visitation is that which is done solely out of grief for the deceased, or because of kinship or friendship with him. This visit is permissible (mubah), just as weeping without wailing (bayn) and lamentation (nawh) is permissible.
For example, the Messenger of Allah ﷺ went to the grave of his mother, wept there himself, and his companions wept as well. Then he said:
زوروا القبور فإنها تذكركم الآخرة
“Visit the graves. For they remind you of the Hereafter.”
Before this, the Prophet ﷺ had forbidden such visits, because people used to go to the graves of their relatives and commit un-Islamic acts. After some time, when knowledge of the rulings of Islam had become firmly rooted in the hearts of the Muslims, he permitted it, because visiting graves contains a reminder of death. Most people, when they see the grave of one of their relatives, feel in their hearts the urge to prepare for the Hereafter, and at times wailing and lamentation also occur on such an occasion, which produces two conflicting matters. That is, visiting graves is in itself permissible. But if the aim is purely obedience, then this visit will be commendable, and if some un-Islamic act is involved in it, then it falls within the scope of disobedience.
◈ The third type is that the intention is supplication and seeking forgiveness for the deceased. Such a visit is recommended (mustahabb). The Sunnah of the Prophet ﷺ indicates that it is recommended, because the Messenger of Allah ﷺ himself made such visits and specifically instructed the Companions (may Allah be pleased with them) to do so.
As for visiting Masjid Quba: whoever goes to Madinah, it is recommended for him to go to Masjid Quba and pray two rak’ahs there, and also to go to Jannat al-Baqi’ and the graves of the martyrs of Uhud, as was the practice of the Messenger of Allah ﷺ.
Supplicating for the people of the graves
So the purpose of visiting graves is to supplicate for the one in the grave. But it is not permissible to turn a grave into a place of worship. It is also forbidden to believe that a supplication made at a grave is accepted more quickly, or that supplicating at a grave is better than supplicating at home or in a mosque. Yes! The Imams of Islam agree that taking part in the funeral prayer is better than going to the graveyard to supplicate for the people of the graves. It is both prescribed and a communal obligation (fard kifayah).