Tawoos (may Allah have mercy on him) narrates that a woman came to the Prophet ﷺ and said: "My mother has passed away and Hajj was obligatory upon her." So the Prophet ﷺ said: "Perform Hajj on behalf of your mother."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 932
Hadith Takhrijصحيح عن غير هذا الطريق : اخرجه البخارى، جزاء الصيد، باب الحج والنذور عن الميت..... الخ (1852) ۔ ومسلم، الصيام، باب قضاء الصوم عن الميت (1149)۔