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.’”