It is narrated from Hazrat Buraidah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) used to teach his companions (may Allah be pleased with them) that when they go to the graveyard, they should say: O group of believers and Muslims! Peace be upon you. Indeed, we, if Allah wills, will also join you. You have gone ahead of us and we are to follow after you, and we ask Allah for well-being for ourselves and for you.