A woman asked the Prophet ﷺ about her father who had died without performing Hajj. He said, "Perform Hajj on behalf of your father."
أخبرني عثمان بن عبد الله قال حدثنا علي بن حكيم الأودي قال حدثنا حميد بن عبد الرحمن الرؤاسي قال حدثنا حماد ابن زيد عن أيوب السختياني عن الزهري عن سليمان بن يسار
أن امرأة سألت النبي ﷺ عن أبيها مات ولم يحج قال حجي عن أبيك
No references are available.
Bukhari narrated it in the Book of Hajj, Chapter on the Obligation of Hajj and Its Merit, etc., no. 1513, and Muslim in the Book of Hajj, Chapter on Performing Hajj on Behalf of Someone Incapable Due to Chronic Illness, Old Age, or the Like, or Due to Death, no. 1334, from the hadith of Zuhri, with this same wording, and it is in Al-Kubra, no. 3614.