MUSLIM 582:
from Sulaymān b. Buraydah from his father —
" Peace be upon the inhabitants of the city (i. e. graveyard)." In the hadith transmitted by Zuhair (the words are):" Peace be upon you, the inhabitants of the city, among the believers, and Muslims, and God willing we shall join you. I beg of Allah peace for us and for you."
رياض الصالحين ٥٨٢:
عن سليمان بن بريده عن أبيه —
كَانَ رَسُولُ اللَّهِ ﷺ يُعَلِّمُهُمْ إِذَا خَرَجُوا إِلَى الْمَقَابِرِ فَكَانَ قَائِلُهُمْ يَقُولُ فِي رِوَايَةِ أَبِي بَكْرٍ السَّلاَمُ عَلَى أَهْلِ الدِّيَارِ وَفِي رِوَايَةِ زُهَيْرٍ السَّلاَمُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ وَإِنَّا إِنْ شَاءَ اللَّهُ لَلَاحِقُونَ أَسْأَلُ اللَّهَ لَنَا وَلَكُمْ الْعَافِيَةَ
hadithunlocked.com