Qays bin Abi Hazim (may Allah have mercy on him) narrated: We went to visit Sayyiduna Khabbab (may Allah be pleased with him) in his illness, and he had had himself cauterised. He said: "The Messenger of Allah (peace and blessings be upon him) forbade us to wish for death, and were it not for that, I would have wished for it." At that time he was repairing a wall of his.
And he said: Indeed, the Messenger of Allah (peace and blessings be upon him) said: "The Muslim is rewarded for all of his spending except what he puts into the earth."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 3630