Sayyiduna Awf bin Malik al-Ashja'i (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) led us in the funeral prayer of a man from the Ansar, and I heard him (peace and blessings be upon him) say: "O Allah, send Your mercy upon him and forgive him, have mercy on him, grant him well-being, pardon him, make his hospitality and his final abode honourable, wash him with water, snow and hail, and cleanse him of sins as a white garment is cleansed of dirt; and give him a home better than his home and a family better than his family; and protect him from the trial of the grave and the punishment of the Fire." Sayyiduna Awf (may Allah be pleased with him) said: Then I saw myself in my dream wishing that I were that deceased person in place of that Ansari, when I saw this prayer of the Messenger of Allah (peace and blessings be upon him).
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15199