TIRMIDHI 716: from Ibn ʿAbbās —
"A woman came to the Prophet and said: 'My sister died while she had two consecutive months of fasting due.' So he said: 'Do you not see that if there was a debt due from your sister then you would have to pay it?' She said: 'Yes.' He said: 'Then the right of Allah is more appropriate.'"

الترمذي ٧١٦: عن ابن عباس —
جَاءَتِ امْرَأَةٌ إِلَى النَّبِيِّ ﷺ فَقَالَتْ إِنَّ أُخْتِي مَاتَتْ وَعَلَيْهَا صَوْمُ شَهْرَيْنِ مُتَتَابِعَيْنِ قَالَ أَرَأَيْتِ لَوْ كَانَ عَلَى أُخْتِكِ دَيْنٌ أَكُنْتِ تَقْضِينَهُ قَالَتْ نَعَمْ قَالَ فَحَقُّ اللَّهِ أَحَقُّ قَالَ وَفِي الْبَابِ عَنْ بُرَيْدَةَ وَابْنِ عُمَرَ وَعَائِشَةَ


Sound (ʿAli Zaʾī)
Tirmidhī > Ṣawm (Fasting) > § What Has Been Related About Fasting On Behalf Of The Dead
hadithunlocked.com