Sunan Ibn Majah, Volume 3, Book 22, Hadith 2710 (DarusSalam) ⓘ
It was narrated from Ibn Umar that the Messenger of Allah said: “(Allah says) O son of Adam! I have given you two things which you do not deserve (except by mercy of Allah (SWT)): I allow you to dispose of a share of your wealth when you are on your deathbed, in order to cleanse and purify you, and my slaves pray for you after your life is over.”
حَدَّثَنَا صَالِحُ بْنُ مُحَمَّدِ بْنِ يَحْيَى بْنِ سَعِيدٍ الْقَطَّانِ، حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، أَنْبَأَنَا مُبَارَكُ بْنُ حَسَّانَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " يَا ابْنَ آدَمَ اثْنَتَانِ لَمْ تَكُنْ لَكَ وَاحِدَةٌ مِنْهُمَا جَعَلْتُ لَكَ نَصِيبًا مِنْ مَالِكَ حِينَ أَخَذْتُ بِكَظَمِكَ لأُطَهِّرَكَ بِهِ وَأُزَكِّيَكَ وَصَلاَةُ عِبَادِي عَلَيْكَ بَعْدَ انْقِضَاءِ أَجَلِكَ " .
also referenced under: Hadith 2710 (Reference) & Book 22, Hadith 2814 (In-Book)