The Prophet (sal Allahu alaihi wa sallam) said: “Never a Muslim plants a tree, but he has the reward of charity for him; for what is eaten out of that is charity, what is stolen out of that, what the beasts eat out of that, what the birds eat out of that, is charity for him.” [Bukhari]
Plant a tree, preferably a fruit tree. Don’t worry about whether you get to enjoy its fruits or not. Let bird, beast and man benefit from it. Without even realizing how much, you will be accruing good deeds in your account.
This hadith states that “a Muslim” who plants a tree will have that count as charity for him. This is because good deeds are only worthy of reward when they are done for Allah’s sake. He who does something because Allah (subhana wa ta’ala) told him to, can hope for Allah’s reward; but he who does it for fame, personal morality, or any other reason, should expect no reward from Allah. If he sought fame then his reward is to be appreciated by people; if he did it to suit his personal inclinations then his personal satisfaction is his reward; and so on.