Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:12581Abū Zakariyyā b. Abū Isḥāq al-Muzakkī

[Machine] In His statement, {And let those who do not leave behind weak offspring fear for them} [Quran 4:9], it means that when a man is on his deathbed, he is advised to give charity, free slaves, and give from his wealth in the way of Allah. However, they are prohibited from commanding him to do so. This means that if someone among you is sick and close to death, he should not be commanded to spend his money on freeing slaves, charity, or in the way of Allah. Rather, he should be commanded to make clear what he owes and what is owed to him in terms of debts, and he should leave a will for his close relatives who do not inherit from him, instructing them to take a fifth or a quarter. It is said, "Is it permissible for one of you, when he dies and has weak offspring, meaning young children, to leave them without wealth, so they become burdens on people?" It is not appropriate for you to command him to do something that you would not be pleased with for yourselves and your own children. Rather, speak the truth from that.  

البيهقي:١٢٥٨١أَخْبَرَنَا أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ الْمُزَكِّي أنا أَبُو الْحَسَنِ أَحْمَدُ بْنُ مُحَمَّدِ بْنِ عُبْدُوسٍ الطَّرَائِفِيُّ ثنا عُثْمَانُ بْنُ سَعِيدٍ الدَّارِمِيُّ ثنا عَبْدُ اللهِ بْنُ صَالِحٍ عَنْ مُعَاوِيَةَ بْنِ صَالِحٍ عَنْ عَلِيِّ بْنِ أَبِي طَلْحَةَ عَنِ ابْنِ عَبَّاسٍ

فِي قَوْلِهِ {وَلْيَخْشَ الَّذِينَ لَوْ تَرَكُوا مِنْ خَلْفِهِمْ ذُرِّيَّةً ضِعَافًا خَافُوا عَلَيْهِمْ} [النساء 9] يَعْنِي الرَّجُلَ يَحْضُرُهُ الْمَوْتُ فَيُقَالُ لَهُ تَصَدَّقْ مِنْ مَالِكَ وَأَعْتِقْ وَأَعْطِ مِنْهُ فِي سَبِيلِ اللهِ فَنُهُوا أَنْ يَأْمُرُوهُ بِذَلِكَ يَعْنِي مَنْ حَضَرَ مِنْكُمْ مَرِيضًا عِنْدَ الْمَوْتِ فَلَا يَأْمُرُهُ أَنْ يُنْفِقَ مَالَهُ فِي الْعِتْقِ وَالصَّدَقَةِ وَفِي سَبِيلِ اللهِ وَلَكِنْ يَأْمُرُهُ أَنْ يُبَيِّنَ مَا لَهُ وَمَا عَلَيْهِ مِنْ دَيْنٍ وَيُوصِي مِنْ مَالِهِ لِذِي قَرَابَتِهِ الَّذِينَ لَا يَرِثُونَ يُوصِي لَهُمْ بِالْخُمُسِ أَوِ الرُّبُعِ يَقُولُ أَيَسُرُّ أَحَدَكُمْ إِذَا مَاتَ وَلَهُ وَلَدٌ ضِعَافٌ يَعْنِي صِغَارًا أَنْ يَتْرُكَهُمْ بِغَيْرِ مَالٍ؛ فَيَكُونُوا عِيَالًا عَلَى النَّاسِ فَلَا يَنْبَغِي أَنْ تَأْمُرُوهُ بِمَا لَا تَرْضَوْنَ بِهِ لِأَنْفُسِكُمْ وَلِأَوْلَادِكُمْ وَلَكِنْ قُولُوا الْحَقَّ مِنْ ذَلِكَ