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