Burayda reported,

While I was sitting with the Messenger of Allah ﷺ, a woman came to him and said, "She" (meaning her mother, who had died) "never performed Hajj. Shall I perform Hajj on her behalf?"He replied, "Perform Hajj on her behalf."

Azami 4765

Sahih

عن بريدة، قال

بينا أنا جالس عند رسول الله ﷺ إذ أتته امرأة فقالت: إنها (تعني أنها وقد ماتت) لم تحج قط أفأحج عنها؟ قال: حجي عنها.

الأعظمي 4765صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Obligation of Hajj, its virtue, and its conditions
Section
Hajj on behalf of the deceased
Numbering
Jami al-Kamil 4765 (2nd edition)
Azami 4765