It was complained to Ali that one of his companions Asim b Zaid was undergoing devotional exercises to such an extent that he had neglected and disregarded his obligation to his wife and children. Ali reprimanded him and said that renunciation was not the way of Islam. He asked him to maintain a proper balance between his duties to God and his duties to the people.
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari