Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:19999Ibn al-Samaydaʿ > Yaʿqūb b. Kaʿb > Yaḥyá b. al-Mutawakkil > Ibn Jurayj > Ibn Abū Mulaykah > Um Salamah

[Machine] The Messenger of Allah ﷺ said, "I have forbidden you from visiting graves, but now go and visit them, for there are lessons to be learned from them."  

الطبراني:١٩٩٩٩حَدَّثَنَا ابْنُ السَّمَيْدَعِ ثنا يَعْقُوبُ بْنُ كَعْبٍ ثنا يَحْيَى بْنُ الْمُتَوَكِّلِ عَنِ ابْنِ جُرَيْجٍ عَنِ ابْنِ أَبِي مُلَيْكَةَ عَنْ أُمِّ سَلَمَةَ قَالَتْ

قَالَ رَسُولُ اللهِ ﷺ «نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا فَإِنَّ لَكُمْ فِيهَا عِبْرَةً»  


See similar narrations below:

Collected by Abū Dāwūd, Aḥmad, Ḥākim, Suyūṭī

It is a Sunnah to visit graves as they remind one of death

abudawud:3235Aḥmad b. Yūnus > Muʿarrif b. Wāṣil > Muḥārib b. Dithār > Ibn Buraydah from his father

The Messenger of Allah ﷺ as saying: I forbade you to visit graves, but you may now visit them, for in visiting them there is a reminder (of death).  

أبو داود:٣٢٣٥حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ حَدَّثَنَا مُعَرِّفُ بْنُ وَاصِلٍ عَنْ مُحَارِبِ بْنِ دِثَارٍ عَنِ ابْنِ بُرَيْدَةَ عَنْ أَبِيهِ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا فَإِنَّ فِي زِيَارَتِهَا تَذْكِرَةً  

ahmad:23052Wakīʿ > Abū Janāb > Sulaymān b. Buraydah from his father

[Machine] The Messenger of Allah ﷺ said: "I used to forbid you from visiting graves, but now visit them and do not say anything that would drive them away."  

أحمد:٢٣٠٥٢حَدَّثَنَا وَكِيعٌ حَدَّثَنَا أَبُو جَنَابٍ عَنْ سُلَيْمَانَ بْنِ بُرَيْدَةَ عَنْ أَبِيهِ قَالَ

قَالَ رَسُولُ اللهِ ﷺ كُنْتُ نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا وَلَا تَقُولُوا هُجْرًا  

hakim:1388Abū Bakr Muḥammad b. ʿAbdullāh b. ʿUmar al-Bazzār> Muḥammad b. Shādhān al-Jawharī > Zakariyyā b. ʿAdī > Sallām b. Sulaym > Yaḥyá b. al-Jābir > ʿAmr b. ʿĀmir > Anas b. Mālik

The Messenger of Allah ﷺ as saying: I forbade you to visit graves, but you may now visit them, for in visiting them there is a reminder (of death). (Using translation from Abū Dāʾūd 3235)   

الحاكم:١٣٨٨حَدَّثَنَا أَبُو بَكْرٍ مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ عُمَرَ الْبَزَّارُ بِبَغْدَادَ ثنا مُحَمَّدُ بْنُ شَاذَانَ الْجَوْهَرِيُّ ثنا زَكَرِيَّا بْنُ عَدِيٍّ ثنا سَلَّامُ بْنُ سُلَيْمٍ عَنْ يَحْيَى بْنِ الْجَابِرِ عَنْ عَمْرِو بْنِ عَامِرٍ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا فَإِنَّهَا تُذَكِّرُكُمُ الْمَوْتُ»