Abu Hurairah relates that the Holy Messenger (peace and blessings of Allah be to him) said: “While a man was walking through a waterless piece of land, he heard a voice coming from the cloud saying, ‘Give water to the garden of So and So.’ On this the cloud proceeded in a certain direction and retained water over a rocky piece of land. The water running through small rivulets flowed into a large channel. This man followed the channel till it encircled a garden and he saw the owner standing inside the garden working with a shovel distributing the water. He asked the owner of the garden: ‘O servant of Allah! What is your name?’ He told him his name, which was the same as he had heard from the cloud. The owner of the garden then asked him: ‘O Servant of Allah! Why did you ask my name?’ He replied: ‘I heard a voice from the cloud, from which this water has rained, saying: ‘Water the garden of So and So; may I know as to what you do to your garden to become entitled for this favour.’ He said: ‘Now since you have asked me, I will let you know: when the produce of this garden is ready, I give away one third in charity, earmark another third for myself and my family and use the remaining third in sowing and another crop in the garden.”
(Sahih Muslim)
The hadith throws light on the lifestyle of a pious person, who earns money by fair means and spends it on others.