Burayda reported,

The Messenger of Allah ﷺ said, "I had previously forbidden you from visiting graves, but Muhammad has now been granted permission to visit his mother's grave, so visit them, for they remind one of the Hereafter."

Tirmidhi 1054

Sahih

حدثنا محمد بن بشار ومحمود بن غيلان والحسن بن علي الخلال قالوا حدثنا أبو عاصم النبيل حدثنا سفيان عن علقمة بن مرثد

عن سليمان بن بريدة عن أبيه قال

قال رسول الله ﷺ قد كنت نهيتكم عن زيارة القبور فقد أذن لمحمد في زيارة قبر أمه فزوروها فإنها تذكر الآخرة

الترمذي 1054صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Funerals
Chapter
Concession regarding visiting graves
Numbering
Darussalam 1054
Tirmidhi 1054