Sayyiduna Ali (may Allah be pleased with him) went to visit a sick man from Banu Hashim. The man intended to make a bequest. He forbade him and said: Allah says: "If he leaves behind wealth" [Surah al-Baqarah: 180], so leave your wealth for your heirs.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوصايا / 12577