This is reply of another postAllah's Messenger (ﷺ) said, Whoever died and he ought to have fasted (the missed days of Ramadan) then his guardians must fast on his behalf.
Reference: Sahih al-Bukhari 1952
مرے ہوئے مسلمان کے روزوں کی قضاء
اگر کوئی شخص مر جائے اور اس کے ذمہ روزے واجب ہوں تو اس کا ولی اس کی طرف سے روزے رکھے۔
صحیح البخاری ۱۹۵۲
Replied Article in Islam