The Messenger of Allah ﷺ used to teach them what to say when they went out to the graveyards. Their spokesman would say, "Peace be upon you, dwellers of these abodes from among the believers and the Muslims." Muawiya said in his version, "We will, Allah willing, join you. You have gone ahead of us, and we will follow. We ask Allah for well-being for ourselves and for you."
حدثنا معاوية بن هشام وأبو أحمد قالا حدثنا سفيان عن علقمة بن مرثد
كان رسول الله ﷺ يعلمهم إذا خرجوا إلى المقابر فكان قائلهم يقول السلام عليكم أهل الديار من المؤمنين والمسلمين قال معاوية في حديثه إنا إن شاء الله بكم لاحقون أنتم فرطنا ونحن لكم تبع ونسأل الله لنا ولكم العافية