“Perform Hajj on behalf of your father.” And the Prophet (ﷺ) said: “The same applies to fasting in fulfillment of a vow – it should be made up for.”
Sunan Ibn Majah Book 25, Hadith 24