The Messenger of Allah ﷺ went out to the graveyard and said: Peace be upon you, inhabitants of the dwellings who are of the community of the believers. If Allah wills we shall join you. (Using translation from Abū Dāʾūd 3237)
أَنَّ رَسُولَ اللهِ ﷺ خَرَجَ إِلَى الْمَقَابِرِ فَقَالَ السَّلَامُ عَلَيْكُمْ دَارَ قَوْمٍ مُؤْمِنِينَ وَإِنَّا إِنْ شَاءَ اللهُ بِكُمْ لَاحِقُونَ