«لو كان مسلما فأعتقتم عنه أو تصدقتم عنه أو حججتم عنه بلغه ذلك»
The Prophet (peace and blessings be upon him) said:
"Had he been a Muslim, and you freed a slave on his behalf, or gave charity on his behalf, or performed Hajj on his behalf, that would have reached him."
Hadith Referenceصحیح الجامع الصغیر / حرف اللام / 5291