The Messenger of Allah, may the peace and blessings of Allah be upon him, gave reason for this answer by saying:
"It is better for you to leave your inheritors wealthy than to leave them poor begging the others".