It was narrated from Ibn ‘Abbas that the Messenger of Allah (ﷺ) heard a man saying: “Labbaik ‘an Shubrumah (Here I am (O Allah) on behalf of Shubrumah.” The Messenger of Allah (ﷺ) said: “Who is Shubrumah?” He said: “A relative of mine.” He said: “Have you ever performed Hajj?” He said: “No.” He said: “Then make this for yourself, then perform Hajj on behalf of Shubrumah.”
It was narrated that Ibn ‘Abbas said: “A man came to the Prophet (ﷺ) and said: ‘Shall I perform Hajj on behalf of my father?’ He said: ‘Yes, perform Hajj on behalf of your father, for if you cannot add any good to his record (at least) you will not add anything bad.’”
It was narrated from Abu Ghawth bin Husain – a man from Furu’ – that he consulted the Prophet (ﷺ) about a Hajj that his father owed, but he had died and had not gone for Hajj. The Prophet (ﷺ) said: “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.