Hadith about visiting Graves
The Prophet of mankind, the Peace of our heart and mind, the Most Generous and Kind (May Peace and blessing of ALLAH be upon him) said, "I had prohibited you for visiting graves. Now do visit graves for it causes aversion from worldliness and reminds of the afterlife."
(Sunan Ibn Majah, vol. 2, pp. 252, Hadis 1571)