There was a pious man among the Banu Israel who always remained busy in the worship of Allah. A group of people came to him and told him that a tribe living nearby worshiped a tree. The news upset him, and with an axe on his shoulder he went to cut down that tree. On the way, Shaytan met him disguised in the form of an old man and asked him where he was going. He said he was going to cut a particular tree. Shaytan said, “You have nothing to be concerned with this tree, you better mind your worship and do not give it up for the sake of something that does not concern you.” “This is also worship,” retorted the man. Then Shaytan tried to prevent him from cutting the tree, and there followed a fight between the two, in which the man overpowered the Shaytan. Finding himself completely helpless, Shaytan pleaded for mercy, and when the man released him, he again pressed, “Allah has not made the cutting of this tree obligatory on you. You do not lose anything if you do not cut it. If its cutting were necessary, Allah could have got it done through one of his many Prophets.” The man insisted on cutting the tree. There was again a fight between the two and again the man overpowered Shaytan.
“Listen,” said Shaytan, “I propose a settlement that will be to your advantage. You are a poor man, a mere burden on this earth. If you stay away from this act, I will pay you three gold coins everyday. You will daily find them lying under your pillow. With this money you can fulfill your own needs, can oblige your relative, help the needy, and do so many other virtuous things. Cutting the tree will be only one virtue, which will ultimately be of no use because the people will grow another tree.” This proposal appealed to the man, and he accepted it.
He found the money on two successive days, but on the third day there was nothing. He got enraged, picked up his axe and went to cut the tree. Shaytan as an old man again met him on the way and asked him where he was going. “To cut the tree!” shouted the man. “I will not let you do it,” said Shaytan. A fight took place between the two again but this time Shaytan overpowered his contender. The man was surprised at his own defeat, and asked the old man the cause of his success. Shaytan replied, “At first, your anger was purely for earning the pleasure of Allah, and therefore Almighty Allah helped you to overpower me, but now it has been partly for the sake of the gold coins and therefore you lost.”
-original author unknown