1) At the time of husband's death the nikah remains until the completion of iddat e wafat. Therefore the wife can give ghusal (bath) and coffin to her husband . But the husband becomes na mehram for his wife on her death.
2)After her husband's death, the wife can see him, she is permitted to give ghusal (bath) and coffin to him according to shariah. Likewise after his wife's death the husband can see her face and he can give shoulder to her funeral. If the woman has no mehram relatives then the husband can put his wife inside the grave though it is not permissible for him to touch her body and give her ghusal (bath) and coffin.
۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔
References:
رد المحتار: (باب صلاة الجنازة، 91/3، ط: زکریا)
والنکاح بعد الموت باقٍ إلی أن تنقضي العدة بخلاف ما إذا ماتت فلا یغسلہا؛ لانتہاء ملک النکاح لعدم المحل فصار أجنبیًا.
ویمنع زوجھا من غسلھا ومسھا لا من النظر إلیھا علی الأصح وھي لا تمنع من ذلک أي من تغسیل زوجھا دخل بھا أو لا․ ولو ذمیةً بشرط بقاء الزوجیة.
Allah knows best
Darulifta Al Ikhlas,Karachi