Hadith.2871 - It was said to Abu Abdullah (as): "A man takes funds for Hajj from someone, but he dies and leaves nothing behind."
Imam (as) said: "It suffices for the deceased, and if he had a Hajj recorded with Allah (swt), it will be credited to the one who provided the funds."