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.
quran:2:266

Would one of you like to have a garden of palm trees and grapevines underneath which rivers flow in which he has from every fruit? But he is afflicted with old age and has weak offspring, and it is hit by a whirlwind containing fire and is burned. Thus does Allah make clear to you ˹His˺ verses that you might give thought.  

Would any of you wish to have a garden, an orchard, of date-palms and vines, with rivers flowing beneath it, for him there is in it all manner of fruit, then old age smites him, and makes him too weak to profit from it, and he has seed, but they are weak, young children who cannot manage it; then a whirlwind (i‘sār are violent winds) with fire smites it, and it is consumed?, so that he loses what he is most in need of, and now he and his children have become incapacitated, confused, without any resources. This is a similitude of how the expenditure of the one expending for show, or the one who reproaches ˹after having expended˺, vanishes and how it is of no avail when he will be most in need of it in the Hereafter (the interrogative ˹ayawaddu, ‘would any wish’˺ is intended as a denial). According to Ibn ‘Abbās, this is the person who performs deeds of obedience, but when Satan comes to him, he begins to work disobedience, until all his good deeds have been consumed. So, in the way that He has explained what has been mentioned, God makes clear the signs to you, so that you might reflect, and take heed.
القرآن:٢:٢٦٦

أَيَوَدُّ أَحَدُكُمْ أَنْ تَكُونَ لَهُ جَنَّةٌ مِنْ نَخِيلٍ وَأَعْنَابٍ تَجْرِي مِنْ تَحْتِهَا الْأَنْهَارُ لَهُ فِيهَا مِنْ كُلِّ الثَّمَرَاتِ وَأَصَابَهُ الْكِبَرُ وَلَهُ ذُرِّيَّةٌ ضُعَفَاءُ فَأَصَابَهَا إِعْصَارٌ فِيهِ نَارٌ فَاحْتَرَقَتْ ۗ كَذَٰلِكَ يُبَيِّنُ اللَّهُ لَكُمُ الْآيَاتِ لَعَلَّكُمْ تَتَفَكَّرُونَ  

{أيَوَدُّ} أيحب {أحدكم أن تكون له جنة} بستان {من نخيل وأعناب تجري من تحتها الأنهار له فيها} ثمر {من كل الثمرات و} قد {أصابه الكبر} فضعف من الكبر عن الكسب {وله ذُرِّيةٌ ضعفاء} أولاد صغار لا يقدرون عليه {فأصابها إعصار} ريح شديدة {فيه نار فاحترقت} ففقدها أحوج ما كان إليها وبقي هو وأولاده عجزة متحيرين لا حيلة لهم وهذا تمثيل لنفقة المرائي والمانّ في ذهابها وعدم نفعها أحوج ما يكون إليها في الآخرة والاستفهام بمعنى النفي، وعن ابن عباس هو الرجل عمل بالطاعات ثم بعث له الشيطان فعمل بالمعاصي حتى أحرق أعماله {كذلك} كما بين ما ذكر {يبين الله لكم الآيات لعلكم تتفكرون} فتعتبرون.