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.'" (ES)
English reference (ES): Vol. 4, Book 25, Hadith 2904 (ES)
Arabic reference (ES): Book 25, Hadith 3016 (ES)