Riyad as-Salihin #583 · The Book of Miscellany

Riyad as-SalihinIbn Abbas
Riyad as-Salihin · Book 1 · The Book of Miscellany
Riyad as-Salihin · كتاب 1 · كتاب المقدمات
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] .
و
عن ابن عباس رضي الله عنهما، قال مر رسول الله صلى الله عليه وسلم بقبور بالمدينة فأقبل عليهم بوجهه فقال: “السلام عليكم يا أهل القبور، يغفر الله لنا ولكم أنتم سلفنا ونحن بالأثر” ((رواه الترمذي وقال: حديث حسن)).
Reference : Riyad as-Salihin 583In-book reference : Book 1, Hadith 583