حَدَّثَنَا إِسْمَاعِيلُ بْنُ مُوسَى، حَدَّثَنَا شَرِيكُ بْنُ عَبْدِ اللَّهِ، عَنْ عَاصِمِ بْنِ عُبَيْدِ اللَّهِ، عَنْ عَبْدِ اللَّهِ بْنِ عَامِرِ بْنِ رَبِيعَةَ، عَنْ عَائِشَةَ، قَالَتْ فَقَدْتُهُ - تَعْنِي النَّبِيَّ ـ صلى الله عليه وسلم ـ - فَإِذَا هُوَ بِالْبَقِيعِ فَقَالَ ‏"‏ السَّلاَمُ عَلَيْكُمْ دَارَ قَوْمٍ مُؤْمِنِينَ أَنْتُمْ لَنَا فَرَطٌ وَإِنَّا بِكُمْ لاَحِقُونَ اللَّهُمَّ لاَ تَحْرِمْنَا أَجْرَهُمْ وَلاَ تَفْتِنَّا بَعْدَهُمْ ‏"‏ ‏.‏
Translation
It wasnarrated from Sulaiman bin Buraidah that his father said

“TheMessenger of Allah (ﷺ) used to teach them, when they went out tothegraveyard, to say: As-salamu ‘alaykum ahlad-diyarminal-mu’minina wal-muslimin, wa inna insha’ Allah bikum lahiqun,nas’alul-laha lana walakumul-‘afiyah (Peace be upon you, Oinhabitants of the abodes,believers and Muslims, and we will joinyou soon if Allah wills. Weask Allah for well-being for us and foryou).’”