"A woman traveled by sea and vowed to fast for a month, but she died before she could fast. Her sister came to the Prophet and told him about that, and he told her to fast on her behalf." (Using translation from Nasāʾī 3816)
أَنْ تَصُومَ فَأَتَتْ أُخْتُهَا النَّبِيَّ ﷺ فَذَكَرَتْ ذَلِكَ لَهُ فَأَمَرَهَا أَنْ تَصُومَ عَنْهَا