A man came to the Prophet ﷺ and said, "Messenger of Allah, my mother has died, and she owed a month of fasting. Shall I make it up on her behalf?"He replied, "If your mother had a debt, would you pay it off for her?"The man said, "Yes."He said, "Then a debt owed to Allah is even more deserving of being paid."Sulayman said, Hakam and Salama bin Kuhayl both said, while we were sitting when Muslim narrated this hadith, "We heard Mujahid mention this from Ibn Abbas."
جاء رجل إلى النبي ﷺ، فقال: يا رسول الله، إن أمي ماتت وعليها صوم شهر، أفأقضيه عنها؟ فقال: لو كان على أمك دين أكنت قاضيه عنها؟ قال: نعم. قال: فدين الله أحق أن يقضى. قال سليمان: فقال الحكم، وسلمة بن كهيل جميعا- ونحن جلوس حين حدث مسلم بهذا الحديث- فقالا: سمعنا مجاهدا يذكر هذا عن ابن عباس.
Bukhari related it in the Book of Fasting (1953), and Muslim (1148:155), both through the route of Zaida, from Sulayman Amash, from Muslim Batin, from Saeed bin Jubayr, from Ibn Abbas, who mentioned it. Their wording is the same.In a version by Muslim, "A woman came to the Messenger of Allah ﷺ and said, 'My mother died while she still owed a month of fasting'" and so on. This is transmitted by Bukhari as a suspended narration with the wording, "A woman said to the Prophet ﷺ, 'My mother died.'"In another suspended narration also transmitted by Bukhari, with the wording, "A woman said to the Prophet ﷺ, 'My sister died.'"In yet another suspended narration of his, "A woman said to the Prophet ﷺ, 'My mother died while she still owed fifteen days of fasting.'"In a version by Muslim, "A woman came to the Messenger of Allah ﷺ and said, 'O Messenger of Allah, my mother died while she still owed a vowed fast'" and so on. This is transmitted by Bukhari as a suspended narration in abridged form.As for his saying, "Sulayman said" (meaning Amash), "Hakam said" (meaning Ibn Utayba), this statement of Sulayman Amash is connected through the chain of transmission mentioned before it.