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).'"
English reference: Vol. 1, Book 6, Hadith 1547
Arabic reference: Book 6, Hadith 1614