The sayings of the Holy Prophet (peace be upon him) show us the right path. It will make you learn the best way a person can live his life and become a good Muslim
If a Muslim plants a tree, that part of its produce consumed by men will be as almsgiving for him. Any fruit stolen from the tree will also be as almsgiving for him. That which the birds eat will also be as almsgiving for him. Any of its produce which people may eat thus diminishing it, will be as almsgiving for the Muslims who planted it. Bukhari, Tajrid al-Sahih, vii, 122; Muslim, Musaqat, 2 No. 2.