A pious man had a big tree in the garden in which a demon dwelt. People rested under it and destroyed the field. Wanting to cut the tree down, the demon offered him money. Realising that it was idol-worship, he cut the tree down and found under the roots a rich treasure.
The Pious Man Who Cut Down the Demon's Tree
Gaster, Exempla No. 395 (Ben Attar)