Sunan Abi Dawud, Hadith 3229 ⓘ
Narrated Buraidah: 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).
حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، حَدَّثَنَا مُعَرِّفُ بْنُ وَاصِلٍ، عَنْ مُحَارِبِ بْنِ دِثَارٍ، عَنِ ابْنِ بُرَيْدَةَ، عَنْ أَبِيهِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا فَإِنَّ فِي زِيَارَتِهَا تَذْكِرَةً " .
also referenced under: Hadith 3235 (DarusSalam)