عن بريدة رضي الله عنه قال قال رسول الله صلى الله عليه وسلم ‏"‏كنت نهيتكم عن زيارة القبور فزوروها‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏ وفي رواية ‏"‏فمن أراد أن يزور القبور فليزر؛ فإنها تذكرنا الآخرة ‏"‏
Copy
Ibn 'Abbas (May Allah be pleased with them) reported

Messenger of Allah (ﷺ) passed by the graves at Al-Madinah. He turned his face towards them and said, "May you be granted safety, O inmates of the graves. May Allah forgive us and you. You have preceded us, and we are to follow."[At-Tirmidhi, who classified it as Hadith Hasan].