Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:1025Muḥammad b. Bashhār > ʿAbd al-Raḥman b. Mahdī > Muʿāwiyah b. Ṣāliḥ > ʿAbd al-Raḥman b. Jubayr b. Nufayr from his father > ʿAwf b. Mālik

"I heard the Messenger of Allah, while he was performing Salat for a deceased person. I could hear him saying in his prayer: (Allahummagfir lahu, war hamhu, waghsilhu bil-baradi (waghsilhu) kama yughsaluth-thawb) 'O Allah! Forgive him, have mercy upon him, and wash him with (snow or ice) (and wash him) just as a garment is washed.'"  

الترمذي:١٠٢٥حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ حَدَّثَنَا مُعَاوِيَةُ بْنُ صَالِحٍ عَنْ عَبْدِ الرَّحْمَنِ بْنِ جُبَيْرِ بْنِ نُفَيْرٍ عَنْ أَبِيهِ عَنْ عَوْفِ بْنِ مَالِكٍ قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ يُصَلِّي عَلَى مَيِّتٍ فَفَهِمْتُ مِنْ صَلاَتِهِ عَلَيْهِ اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَاغْسِلْهُ بِالْبَرَدِ وَاغْسِلْهُ كَمَا يُغْسَلُ الثَّوْبُ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ قَالَ مُحَمَّدُ بْنُ إِسْمَاعِيلَ أَصَحُّ شَيْءٍ فِي هَذَا الْبَابِ هَذَا الْحَدِيثُ

See similar narrations below:

Collected by Aḥmad
ahmad:24000ʿAbd al-Raḥman b. Mahdī > Muʿāwiyah > ʿAbd al-Raḥman b. Jubayr from his father > ʿAwf b. Mālik

[Machine] The Messenger of Allah ﷺ prayed for a deceased person and said, "By his prayer, I understood that he was saying, 'O Allah, forgive him, have mercy on him, wash him with water and snow, and purify him from sins as you purify the white garment from dirt.'"  

أحمد:٢٤٠٠٠حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ عَنْ مُعَاوِيَةَ عَنْ عَبْدِ الرَّحْمَنِ بْنِ جُبَيْرٍ عَنْ أَبِيهِ عَنْ عَوْفِ بْنِ مَالِكٍ قَالَ

صَلَّى رَسُولُ اللهِ ﷺ عَلَى مَيِّتٍقَالَ فَفَهِمْتُ مِنْ صَلَاتِهِ عَلَيْهِ اللهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الْأَبْيَضَ مِنَ الدَّنَسِ