It is narrated from Urwah bin al-Zubayr (may Allah have mercy on him) that a friend of Sayyiduna Ali (peace be upon him) came to him to visit him in his illness.
He said to him: "I want to make a bequest." Sayyiduna Ali (may Allah be pleased with him) said: "Indeed Allah Almighty says: 'if he leaves wealth,' and you are leaving only a little, so leave it for your family, for that is more virtuous."
Related hadith on this topic