Making up fasts on behalf of the deceased Sahih Muslim 1149 c
Translation
Ibn Buraida (Allah be pleased with him) reported on the authority of his father
A woman came to the Messenger of Allah (ﷺ), and the rest of the hadith is the same, but he said:" Fasting of one month."