Sunan Ibn Majah, Book 6, Hadith 137 (Ibn Majah 1569)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

“Visit the graves, for they will remind you of the Hereafter.”