It wasnarrated that Ibn 'Abbas said:
"A man came to the Prophet(ﷺ)and said: 'Shall I perform Hajj on behalf of my father?' Hesaid:'Yes, perform Hajj on behalf of your father, for if you cannotaddany good to his record (at least) you will not add anything bad.'" (JA)
English reference (JA): Vol. 4, Book 25, Hadith 2904 (JA)
Arabic reference (JA): Book 25, Hadith 3016 (JA)