Sahih Muslim 1589: Preparing for Burial, Interment and the Funeral Prayer
Hazrat Auf bin Malik (ra) relates: The Messenger of Allah (saw) led a funeral prayer and I memorised his (saw) prayer. He (saw) was saying: “O Allah! Forgive him. Have mercy on him, keep him in well-being and pardon him, and honour his reception as a guest. Make wide the place he enters, wash him with water, snow and hail, and cleanse him of sins as You cleanse a white garment of dirt. Give him in exchange a home better than his home, a family better than his family and a companion better than his companion. Admit him to Paradise and protect him from the punishment of the grave,” or (he said) “from the punishment of the Fire.” The narrator says: So much so that I wished that I had been the one who had died.
AI-translated by Islam-Today
Book 57: Preparing for Burial, Interment and the Funeral Prayer