“A woman came to the Prophet (ﷺ) and said: ‘O Messenger of Allah, my mother has died and she owed a fast. Should I fast on her behalf?’ He said: ‘Yes.’”
Sunan Ibn Majah Book 7, Hadith 122