Abu Ishaq al-Sabi'i said: It was narrated to me that Sayyiduna Ali (may Allah be pleased with him) considered such a bequest to be permissible. (That is), according to the statement of Hasan (may Allah have mercy on him), he also said this.
Hadith Referenceسنن دارمي / من كتاب الوصايا / 3335