Sunan Ibn Majah

Chapters Regarding Funerals

205 items

Hadiths 1553https://sunnah.com/ibnmajah:1553

حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا حَمَّادُ بْنُ عَبْدِ الرَّحْمَنِ الْكَلْبِيُّ، حَدَّثَنَا إِدْرِيسُ الأَوْدِيُّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، قَالَ حَضَرْتُ ابْنَ عُمَرَ فِي جِنَازَةٍ فَلَمَّا وَضَعَهَا فِي اللَّحْدِ قَالَ بِسْمِ اللَّهِ وَفِي سَبِيلِ اللَّهِ وَعَلَى مِلَّةِ رَسُولِ اللَّهِ ‏.‏ فَلَمَّا أُخِذَ فِي تَسْوِيَةِ اللَّبِنِ عَلَى اللَّحْدِ قَالَ اللَّهُمَّ أَجِرْهَا مِنَ الشَّيْطَانِ وَمِنْ عَذَابِ الْقَبْرِ اللَّهُمَّ جَافِ الأَرْضَ عَنْ جَنْبَيْهَا وَصَعِّدْ رُوحَهَا وَلَقِّهَا مِنْكَ رِضْوَانًا ‏.‏ قُلْتُ يَا ابْنَ عُمَرَ أَشَىْءٌ سَمِعْتَهُ مِنْ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ أَمْ قُلْتَهُ بِرَأْيِكَ قَالَ إِنِّي إِذًا لَقَادِرٌ عَلَى الْقَوْلِ بَلْ شَىْءٌ سَمِعْتُهُ مِنْ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ ‏.‏

It was narrated that Sa’eed bin Musayyab said: “I was present with Ibn ‘Umar at a funeral. When the body was placed in the niche-grave) he said, ‘Bismillah wa fi sabil-illah wa ‘ala millati rasul-illah’ (In the Name of Allah, for the sake of Allah and according to the religion of the Messenger of Allah). When he started to place bricks in the niche-grave he said: ‘Allahumma ajirha min ash-shaitani wa min ‘adhabil-qabr. Allahumma Jafil-arda ‘an janbaiha, wa sa’id ruhaha, wa laqqiha minka ridwana (O Allah, protect him from Satan and from the torment of the grave; O Allah, keep the earth away from his two sides and take his soul up and grant him pleasure from Yourself).’ I said: ‘O Ibn ‘Umar, is this something that you heard from the Messenger of Allah (ﷺ) or is it your own words?’ He said: ‘I could have said something like that, but this is something that I heard from the Messenger of Allah (ﷺ).’”

Hadiths 1554https://sunnah.com/ibnmajah:1554

حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ، حَدَّثَنَا حَكَّامُ بْنُ سَلْمٍ الرَّازِيُّ، قَالَ سَمِعْتُ عَلِيَّ بْنَ عَبْدِ الأَعْلَى، يَذْكُرُ عَنْ أَبِيهِ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ اللَّحْدُ لَنَا وَالشَّقُّ لِغَيْرِنَا ‏" ‏ ‏.‏

It was narrated that Ibn ‘Abbas said: “The Messenger of Allah (ﷺ) said: ‘The niche-grave is for us and the ditch-grave is for others.”

Hadiths 1555https://sunnah.com/ibnmajah:1555

حَدَّثَنَا إِسْمَاعِيلُ بْنُ مُوسَى السُّدِّيُّ، حَدَّثَنَا شَرِيكٌ، عَنْ أَبِي الْيَقْظَانِ، عَنْ زَاذَانَ، عَنْ جَرِيرِ بْنِ عَبْدِ اللَّهِ الْبَجَلِيِّ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ اللَّحْدُ لَنَا وَالشَّقُّ لِغَيْرِنَا ‏" ‏ ‏.‏

It was narrated that Jarir bin ‘Abdullah Al-Bajali said: “The Messenger of Allah (ﷺ) said: ‘The niche-grave is for us and the ditch-grave is for others.’”

Hadiths 1556https://sunnah.com/ibnmajah:1556

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا أَبُو عَامِرٍ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ جَعْفَرٍ الزُّهْرِيُّ، عَنْ إِسْمَاعِيلَ بْنِ مُحَمَّدِ بْنِ سَعْدٍ، عَنْ عَامِرِ بْنِ سَعْدٍ، عَنْ سَعْدٍ، أَنَّهُ قَالَ: أَلْحِدُوا لِي لَحْدًا وَانْصِبُوا عَلَىَّ اللَّبِنَ نَصْبًا كَمَا فُعِلَ بِرَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ ‏.‏

It was narrated that Sa’d said: “Make a niche-grave for me, and block it up with bricks as was done for the Messenger of Allah (ﷺ).”

Hadiths 1557https://sunnah.com/ibnmajah:1557

حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ، حَدَّثَنَا مُبَارَكُ بْنُ فَضَالَةَ، حَدَّثَنِي حُمَيْدٌ الطَّوِيلُ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ: لَمَّا تُوُفِّيَ النَّبِيُّ ـ صلى الله عليه وسلم ـ كَانَ بِالْمَدِينَةِ رَجُلٌ يَلْحَدُ وَآخَرُ يَضْرَحُ. فَقَالُوا: نَسْتَخِيرُ رَبَّنَا وَنَبْعَثُ إِلَيْهِمَا فَأَيُّهُمَا سَبَقَ تَرَكْنَاهُ ‏.‏ فَأُرْسِلَ إِلَيْهِمَا فَسَبَقَ صَاحِبُ اللَّحْدِ. فَلَحَدُوا لِلنَّبِيِّ ـ صلى الله عليه وسلم ـ ‏.‏

It was narrated that Anas bin Malik said: “When the Prophet (ﷺ) died, there was a man in Al-Madinah who used to make a niche in the grave and another who used to dig graves without a niche. They said: ‘Let us pray Istikharah to our Lord and call for them both, and whichever of them comes first, we will let him do it.’ So they were both sent for, and the one who used to make the niche-grave came first, so they made a niche-grave for the Prophet (ﷺ).”

Hadiths 1558https://sunnah.com/ibnmajah:1558

حَدَّثَنَا عُمَرُ بْنُ شَبَّةَ بْنِ عُبَيْدَةَ بْنِ زَيْدٍ، حَدَّثَنَا عُبَيْدُ بْنُ طُفَيْلٍ الْمُقْرِئُ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ أَبِي مُلَيْكَةَ الْقُرَشِيُّ، حَدَّثَنَا ابْنُ أَبِي مُلَيْكَةَ، عَنْ عَائِشَةَ، قَالَتْ لَمَّا مَاتَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ اخْتَلَفُوا فِي اللَّحْدِ وَالشَّقِّ حَتَّى تَكَلَّمُوا فِي ذَلِكَ وَارْتَفَعَتْ أَصْوَاتُهُمْ ‏.‏ فَقَالَ: عُمَرُ لاَ تَصْخَبُوا عِنْدَ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ حَيًّا وَلاَ مَيِّتًا أَوْ كَلِمَةً نَحْوَهَا ‏.‏ فَأَرْسَلُوا إِلَى الشَّقَّاقِ وَاللاَّحِدِ جَمِيعًا فَجَاءَ اللاَّحِدُ فَلَحَدَ لِرَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ ثُمَّ دُفِنَ ـ صلى الله عليه وسلم ـ ‏.‏

It was narrated that ‘Aishah said: “When the Messenger of Allah (ﷺ) died, they differed as to whether his grave should have a niche or a ditch in the ground, until they spoke and raised their voices concerning that. Then ‘Umar said: ‘Do not shout in the presence of the Messenger of Allah (ﷺ), living or dead,’ or words to that effect. So they sent for both the one who made a niche and the one who dug graves without a niche, and the one who used to make a niche came and dug a grave with a niche for the Messenger of Allah (ﷺ), then he (ﷺ) was buried.”

Hadiths 1559https://sunnah.com/ibnmajah:1559

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا زَيْدُ بْنُ الْحُبَابِ، حَدَّثَنَا مُوسَى بْنُ عُبَيْدَةَ، حَدَّثَنِي سَعِيدُ بْنُ أَبِي سَعِيدٍ، عَنِ الأَدْرَعِ السُّلَمِيِّ، قَالَ جِئْتُ لَيْلَةً أَحْرُسُ النَّبِيَّ ـ صلى الله عليه وسلم ـ فَإِذَا رَجُلٌ قِرَاءَتُهُ عَالِيَةٌ فَخَرَجَ النَّبِيُّ ـ صلى الله عليه وسلم ـ فَقُلْتُ يَا رَسُولَ اللَّهِ هَذَا مُرَاءٍ ‏.‏ قَالَ فَمَاتَ بِالْمَدِينَةِ فَفَرَغُوا مِنْ جِهَازِهِ فَحَمَلُوا نَعْشَهُ فَقَالَ النَّبِيُّ ـ صلى الله عليه وسلم ـ ‏"‏ ارْفُقُوا بِهِ رَفَقَ اللَّهُ بِهِ إِنَّهُ كَانَ يُحِبُّ اللَّهَ وَرَسُولَهُ ‏"‏ ‏.‏ قَالَ وَحَفَرَ حُفْرَتَهُ فَقَالَ ‏"‏ أَوْسِعُوا لَهُ وَسَّعَ اللَّهُ عَلَيْهِ ‏"‏ ‏.‏ فَقَالَ بَعْضُ أَصْحَابِهِ يَا رَسُولَ اللَّهِ لَقَدْ حَزِنْتَ عَلَيْهِ ‏.‏ فَقَالَ ‏"‏ أَجَلْ إِنَّهُ كَانَ يُحِبُّ اللَّهَ وَرَسُولَهُ ‏"‏ ‏.‏

It was narrated that Adra’ As-Sulami said: “I came one night to guard the Prophet (ﷺ), and there was a man reciting loudly. The Prophet (ﷺ) came out and I said: ‘O Messenger of Allah, this man is showing off.’ Then he died in Al-Madinah, and they finished preparing him, then they carried his dead body. The Prophet (ﷺ) said: ‘Be gentle with him, may Allah be gentle with him, for he loved Allah and His Messenger.’ Then his grave was dug and he (the Prophet (ﷺ)) said: ‘Make it spacious for him, and may Allah make it spacious for him.’ Some of his Companions said: ‘O Messenger of Allah, you are grieving for him.’ He said: ‘Yes indeed, for he loved Allah and His Messenger.’”

Hadiths 1560https://sunnah.com/ibnmajah:1560

حَدَّثَنَا أَزْهَرُ بْنُ مَرْوَانَ، حَدَّثَنَا عَبْدُ الْوَارِثِ بْنُ سَعِيدٍ، حَدَّثَنَا أَيُّوبُ، عَنْ حُمَيْدِ بْنِ هِلاَلٍ، عَنْ أَبِي الدَّهْمَاءِ، عَنْ هِشَامِ بْنِ عَامِرٍ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ احْفِرُوا وَأَوْسِعُوا وَأَحْسِنُوا ‏" ‏ ‏.‏

It was narrated from Hisham bin ‘Amir that the Messenger of Allah (ﷺ) said: “Dig the grave deep, make it spacious and prepare it well.”

Hadiths 1561https://sunnah.com/ibnmajah:1561

حَدَّثَنَا الْعَبَّاسُ بْنُ جَعْفَرٍ، حَدَّثَنَا مُحَمَّدُ بْنُ أَيُّوبَ أَبُو هُرَيْرَةَ الْوَاسِطِيُّ، حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ مُحَمَّدٍ، عَنْ كَثِيرِ بْنِ زَيْدٍ، عَنْ زَيْنَبَ بِنْتِ نُبَيْطٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ أَعْلَمَ قَبْرَ عُثْمَانَ بْنِ مَظْعُونٍ بِصَخْرَةٍ ‏.‏

It was narrated from Anas bin Malik that the Messenger of Allah (ﷺ) marked the grave of ‘Uthman bin Maz’un with a rock.

Hadiths 1562https://sunnah.com/ibnmajah:1562

حَدَّثَنَا أَزْهَرُ بْنُ مَرْوَانَ، وَمُحَمَّدُ بْنُ زِيَادٍ، قَالاَ حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنْ أَيُّوبَ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ، قَالَ نَهَى رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ عَنْ تَقْصِيصِ الْقُبُورِ ‏.‏

It was narrated that Jabir said: “The Messenger of Allah (ﷺ) forbade plastering over graves.”

Hadiths 1563https://sunnah.com/ibnmajah:1563

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ، حَدَّثَنَا حَفْصُ بْنُ غِيَاثٍ، عَنِ ابْنِ جُرَيْجٍ، عَنْ سُلَيْمَانَ بْنِ مُوسَى، عَنْ جَابِرٍ، قَالَ نَهَى رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ أَنْ يُكْتَبَ عَلَى الْقَبْرِ شَىْءٌ ‏.‏

It was narrated that Jabir said: “The Messenger of Allah (ﷺ) forbade writing anything on graves.”

Hadiths 1564https://sunnah.com/ibnmajah:1564

حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ الرَّقَاشِيُّ، حَدَّثَنَا وُهَيْبٌ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ يَزِيدَ بْنِ جَابِرٍ، عَنِ الْقَاسِمِ بْنِ مُخَيْمِرَةَ، عَنْ أَبِي سَعِيدٍ، أَنَّ النَّبِيَّ ـ صلى الله عليه وسلم ـ نَهَى أَنْ يُبْنَى عَلَى الْقَبْرِ ‏.‏

It was narrated from Abu Sa’eed that the Prophet (ﷺ) forbade building structures over graves.

Hadiths 1565https://sunnah.com/ibnmajah:1565

حَدَّثَنَا الْعَبَّاسُ بْنُ الْوَلِيدِ الدِّمَشْقِيُّ، حَدَّثَنَا يَحْيَى بْنُ صَالِحٍ، حَدَّثَنَا سَلَمَةُ بْنُ كُلْثُومٍ، حَدَّثَنَا الأَوْزَاعِيُّ، عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ صَلَّى عَلَى جِنَازَةٍ ثُمَّ أَتَى قَبْرَ الْمَيِّتِ فَحَثَى عَلَيْهِ مِنْ قِبَلِ رَأْسِهِ ثَلاَثًا ‏.‏

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) offered the funeral prayer, then he came to the grave of the deceased and scattered three handfuls of earth from the side of (the deceased’s) head.

Hadiths 1566https://sunnah.com/ibnmajah:1566

حَدَّثَنَا سُوَيْدُ بْنُ سَعِيدٍ، حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ أَبِي حَازِمٍ، عَنْ سُهَيْلٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ لأَنْ يَجْلِسَ أَحَدُكُمْ عَلَى جَمْرَةٍ تُحْرِقُهُ خَيْرٌ لَهُ مِنْ أَنْ يَجْلِسَ عَلَى قَبْرٍ ‏" ‏ ‏.‏

It was narrated from Abu Hurairah said: The Messenger of Allah (ﷺ) said: “If one of you were to sit on a live coal that burns him, that would be better for him than if he were to sit on a grave.”

Hadiths 1567https://sunnah.com/ibnmajah:1567

حَدَّثَنَا مُحَمَّدُ بْنُ إِسْمَاعِيلَ بْنِ سَمُرَةَ، حَدَّثَنَا الْمُحَارِبِيُّ، عَنِ اللَّيْثِ بْنِ سَعْدٍ، عَنْ يَزِيدَ بْنِ أَبِي حَبِيبٍ، عَنْ أَبِي الْخَيْرِ، مَرْثَدِ بْنِ عَبْدِ اللَّهِ الْيَزَنِيِّ عَنْ عُقْبَةَ بْنِ عَامِرٍ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ لأَنْ أَمْشِيَ عَلَى جَمْرَةٍ أَوْ سَيْفٍ أَوْ أَخْصِفَ نَعْلِي بِرِجْلِي أَحَبُّ إِلَىَّ مِنْ أَنْ أَمْشِيَ عَلَى قَبْرِ مُسْلِمٍ وَمَا أُبَالِي أَوَسَطَ الْقُبُورِ قَضَيْتُ حَاجَتِي أَوْ وَسَطَ السُّوقِ ‏" ‏ ‏.‏

It was narrated from ‘Uqbah bin ‘Amir that the Messenger of Allah (ﷺ) said: ‘If I were to walk on a live coal or a sword, or if I were to sew shows to my feet, that would be better for me than walking on the grave of a Muslim. And I see no difference between relieving myself in the midst of graves or in the middle of the marketplace.”

Hadiths 1568https://sunnah.com/ibnmajah:1568

حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا وَكِيعٌ، حَدَّثَنَا الأَسْوَدُ بْنُ شَيْبَانَ، عَنْ خَالِدِ بْنِ سُمَيْرٍ، عَنْ بَشِيرِ بْنِ نَهِيكٍ، عَنْ بَشِيرِ بْنِ الْخَصَاصِيَةِ، قَالَ بَيْنَمَا أَنَا أَمْشِي، مَعَ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ فَقَالَ ‏"‏ يَا ابْنَ الْخَصَاصِيَةِ مَا تَنْقِمُ عَلَى اللَّهِ أَصْبَحْتَ تُمَاشِي رَسُولَ اللَّهِ ‏"‏ ‏.‏ فَقُلْتُ يَا رَسُولَ اللَّهِ مَا أَنْقِمُ عَلَى اللَّهِ شَيْئًا كُلُّ خَيْرٍ قَدْ أَتَانِيهِ اللَّهُ ‏.‏ فَمَرَّ عَلَى مَقَابِرِ الْمُسْلِمِينَ فَقَالَ ‏"‏ أَدْرَكَ هَؤُلاَءِ خَيْرًا كَثِيرًا ‏"‏ ‏.‏ ثُمَّ مَرَّ عَلَى مَقَابِرِ الْمُشْرِكِينَ فَقَالَ ‏"‏ سَبَقَ هَؤُلاَءِ خَيْرٌ كَثِيرٌ ‏"‏ ‏.‏ قَالَ فَالْتَفَتَ فَرَأَى رَجُلاً يَمْشِي بَيْنَ الْمَقَابِرِ فِي نَعْلَيْهِ فَقَالَ ‏"‏ يَا صَاحِبَ السِّبْتِيَّتَيْنِ أَلْقِهِمَا ‏"‏ ‏.‏ حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ قَالَ كَانَ عَبْدُ اللَّهِ بْنُ عُثْمَانَ يَقُولُ حَدِيثٌ جَيِّدٌ وَرَجُلٌ ثِقَةٌ ‏.‏

It was narrated that Bashir bin Khasasiyyah said: “While I was walking with the Messenger of Allah (ﷺ) he said: ‘O son of Khasasiyyah, why are you angry with Allah when you are walking with the Messenger of Allah?’ I said: ‘O Messenger of Allah! I am not angry with Allah at all. Allah has bestowed all good on me.’ Then he passed by the graves of the Muslims and said: ‘They have caught up with a great deal of good.’ Then he passed by the graves of the idolaters and said: ‘They died before a great deal of good came to them.’ Then he turned and saw a man walking between the graves in his shoes and he said: ‘O you with the shoes, take them off.’” Muhammad bin Bashar narrated from Abdur-Rahman bin Mahdi that he said: Abdullah bin Uthman used to say (about this hadith): "A good hadith and a reliable narrator."

Hadiths 1569https://sunnah.com/ibnmajah:1569

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ، عَنْ يَزِيدَ بْنِ كَيْسَانَ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ زُورُوا الْقُبُورَ فَإِنَّهَا تُذَكِّرُكُمُ الآخِرَةَ ‏" ‏ ‏.‏

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said: “Visit the graves, for they will remind you of the Hereafter.”

Hadiths 1570https://sunnah.com/ibnmajah:1570

حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعِيدٍ الْجَوْهَرِيُّ، حَدَّثَنَا رَوْحٌ، حَدَّثَنَا بِسْطَامُ بْنُ مُسْلِمٍ، قَالَ سَمِعْتُ أَبَا التَّيَّاحِ، قَالَ سَمِعْتُ ابْنَ أَبِي مُلَيْكَةَ، عَنْ عَائِشَةَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ رَخَّصَ فِي زِيَارَةِ الْقُبُورِ ‏.‏

It was narrated from ‘Aishah that the Messenger of Allah (ﷺ) gave permission for visiting the graves.

Hadiths 1571https://sunnah.com/ibnmajah:1571

حَدَّثَنَا يُونُسُ بْنُ عَبْدِ الأَعْلَى، حَدَّثَنَا ابْنُ وَهْبٍ، أَنْبَأَنَا ابْنُ جُرَيْجٍ، عَنْ أَيُّوبَ بْنِ هَانِئٍ، عَنْ مَسْرُوقِ بْنِ الأَجْدَعِ، عَنِ ابْنِ مَسْعُودٍ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ ‏ "‏ كُنْتُ نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوا الْقُبُورَ فَإِنَّهَا تُزَهِّدُ فِي الدُّنْيَا وَتُذَكِّرُ الآخِرَةَ ‏" ‏ ‏.‏

It was narrated from Ibn Mas’ud that the Messenger of Allah (ﷺ) said, “I used to forbid you to visit the graves, but now visit them, for they will draw your attention away from this world and remind you of the Hereafter.”

Hadiths 1572https://sunnah.com/ibnmajah:1572

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ، حَدَّثَنَا يَزِيدُ بْنُ كَيْسَانَ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ زَارَ النَّبِيُّ ـ صلى الله عليه وسلم ـ قَبْرَ أُمِّهِ فَبَكَى وَأَبْكَى مَنْ حَوْلَهُ فَقَالَ: ‏ "‏ اسْتَأْذَنْتُ رَبِّي فِي أَنْ أَسْتَغْفِرَ لَهَا فَلَمْ يَأْذَنْ لِي وَاسْتَأْذَنْتُ رَبِّي فِي أَنْ أَزُورَ قَبْرَهَا فَأَذِنَ لِي فَزُورُوا الْقُبُورَ فَإِنَّهَا تُذَكِّرُكُمُ الْمَوْتَ ‏" ‏ ‏.‏

It was narrated that Abu Hurairah said: “The Prophet (ﷺ) visited the grave of his mother and wept, causing the people around him to weep. Then he said: ‘I asked my Lord for permission to seek forgiveness for her, but He did not give me permission. Then I asked my Lord for permission to visit her grave and He gave me permission. So visit the graves, for they will remind you of death.’”