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.
malik:20-16

Yahya related to me from Malik from Nafi that Abdullah ibn Umar shrouded his son Waqid ibn Abdullah, who had died at al-Juhfa while in ihram, and he veiled his head and face and said, "If we had not been in ihram we would have perfumed him. " Malik said, "A man can only do things while he is alive. When he is dead, his actions stop."  

مالك:٢٠-١٦وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ نَافِعٍ أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ كَفَّنَ ابْنَهُ وَاقِدَ بْنَ عَبْدِ اللَّهِ وَمَاتَ بِالْجُحْفَةِ مُحْرِمًا وَخَمَّرَ رَأْسَهُ وَوَجْهَهُ وَقَالَ لَوْلاَ أَنَّا حُرُمٌ لَطَيَّبْنَاهُ

قَالَ مَالِكٌ وَإِنَّمَا يَعْمَلُ الرَّجُلُ مَا دَامَ حَيًّا فَإِذَا مَاتَ فَقَدِ انْقَضَى الْعَمَلُ