[Machine] Ali visited a man from the Banu Hashim tribe who was sick and wanted to give him some advice. However, the man refused and Ali told him that Allah says, "If you leave a good deed, it is better for you" (Surah Al-Baqarah, 180). So, he advised him to leave his wealth for his inheritors.
أَنَّ عَلِيًّا دَخَلَ عَلَى رَجُلٍ مِنْ بَنِي هَاشِمٍ وَهُوَ مَرِيضٌ يَعُودُهُ فَأَرَادَ أَنْ يُوصِيَ فَنَهَاهُ وَقَالَ إِنَّ اللَّهَ يَقُولُ {إِنْ تَرَكَ خَيْرًا} [البقرة 180] مَالًا فَدَعْ مَالَكَ لِوَرَثَتِكَ