Sahih Muslim, Book 13, Hadith 198 (Muslim 2667)

'A'isha (Allah be pleased with her) reported Allah's Messenger (ﷺ) as saying:

If anyone dies in a state (that he had to complete) some fasts, his heir must fast on his behalf.