when the Messenger of Allah came to the graveyard he would say: "As-salamu 'alaykum ahli ad-diyari min al-mu'minin wal-muslimin wa inna I sha' Allahu bikum lana faratun wa nahnu lakum taba'un, as'alullahal-'afiyata lana wa lakum. (Peace by upon the inhabitants of this place among the believers and Muslims. Soon we will join you, if Allah willing. You have gone on ahead of us and we will follow you. I ask Allah to keep us and you safe and sound.)" (Using translation from Nasāʾī 2040)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ إِذَا أَتَى عَلَى الْمَقَابِرِ قَالَ «السَّلَامُ عَلَيْكُمْ أَهْلَ الدَّارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ وَإِنَّا إِنْ شَاءَ اللهُ بِكُمْ لَاحِقُونَ أَنْتُمْ لَنَا فَرَطٌ وَنَحْنُ لَكُمْ تَبَعٌ وَأَسْأَلُ اللهَ الْعَافِيَةَ لَنَا وَلَكُمْ»