Mufti Muhammad b. Adam al-KawtharÐ answers a similar fatwa on the website Sunni
“Question: If a man dies, is his wife allowed to see him before burial?
Answer: In the name of Allah, Most Compassionate, Most Merciful,
When a man passes away, his wife (in some respects) is considered to be still in his marriage until the completion of her waiting period (idda) which, in the event of death, is four months and ten days. Thus, it will be permitted for her to see her husband’s face, touch his body and even bathe him.
However, if the wife passes away, then (according to the Hanafi understanding) as soon as her soul leaves her body, the bond of marriage is considered to be terminated. As such, it will not be permitted for the husband to bathe his ex-wife.
It is stated in Maraqi al-Falah:
A woman may bathe her husband contrary to the man, for he will not bathe his wife as the bond of marriage has ended (Maraqi al-Falah with the Hashiya of Tahtawi, P: 571-572)