Sunan Ibn Majah, Book 25, Hadith 23 (Ibn Majah 2906)

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