It is narrated from Muhammad ibn Isma'il ibn Bazee' that he said: I asked Abu Ja'far al-Thani عليه السلام about a man who died and had fasting obligations upon him. Should fasting be done on his behalf, or should charity be given on his behalf? Imam عليه السلام said: "Charity should be given on his behalf, for it is better."