Sunan Ibn Majah
Sunan Ibn Majah 1571
حَدَّثَنَا يُونُسُ بْنُ عَبْدِ الأَعْلَى، حَدَّثَنَا ابْنُ وَهْبٍ، أَنْبَأَنَا ابْنُ جُرَيْجٍ، عَنْ أَيُّوبَ بْنِ هَانِئٍ، عَنْ مَسْرُوقِ بْنِ الأَجْدَعِ، عَنِ ابْنِ مَسْعُودٍ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ " كُنْتُ نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوا الْقُبُورَ فَإِنَّهَا تُزَهِّدُ فِي الدُّنْيَا وَتُذَكِّرُ الآخِرَةَ " .
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
Yunus ibn Abd al-A‘la narrated to us; Ibn Wahb narrated to us; Ibn Jurayj informed us, from Ayyub ibn Hani’, from Masruq ibn al-Ajda‘, from Ibn Mas‘ud: The Messenger of Allah (peace and blessings be upon him) said: ‘I had forbidden you to visit graves; now visit them, for they make you less attached to this world and remind you of the Hereafter.’
Notes and open questions — unreviewed
The source contrasts the earlier prohibition with the current permission and states two benefits: reduced attachment to worldly life and remembrance of the Hereafter.