Hadith 6:1006
'Abd al-Rahim ibn Sulayman narrated to us, from Yahya ibn al-Harith, from 'Amr ibn 'Amir, from Anas ibn Malik, who said: The Messenger of Allah (may Allah bless him and grant him peace) forbade the visiting of graves. Then he said: "Visit them, and do not say anything obscene (hajran)."
حدثنا عبد الرحيم بن سليمان عن يحيى بن الحارث عن عمرو بن عامر عن أنس بن مالك قال نهى رسول الله صلى الله عليه وسلم عن زيارة القبور ثم قال زوروها ولا تقولوا هجرا