Saad bin Abu Waqqas reported,

The Prophet ﷺ came to visit me when I was ill in Mecca, and he disliked the thought of dying in the land from which he had migrated. He said, "May Allah have mercy on Ibn Afra."I asked, "Messenger of Allah, shall I bequeath all my wealth?"He said, "No."I asked, "Then half?"He said, "No."I asked, "Then a third?"He said, "A third, and even a third is much. To leave your heirs wealthy is better than to leave them destitute, begging from people. Whatever you spend will count as charity for you, even the morsel you raise to your wife's mouth. And perhaps Allah will raise you up so that some people will benefit from you and others will be harmed by you."At that time he had only one daughter.

Bukhari 2742

Sahih

حدثنا أبو نعيم حدثنا سفيان عن سعد بن إبراهيم عن عامر بن سعد

عن سعد بن أبي وقاص رضي الله عنه قال

جاء النبي ﷺ يعودني وأنا بمكة وهو يكره أن يموت بالأرض التي هاجر منها قال يرحم الله ابن عفراء قلت يا رسول الله أوصي بمالي كله قال لا قلت فالشطر قال لا قلت الثلث قال فالثلث والثلث كثير إنك أن تدع ورثتك أغنياء خير من أن تدعهم عالة يتكففون الناس في أيديهم وإنك مهما أنفقت من نفقة فإنها صدقة حتى اللقمة التي ترفعها إلى في امرأتك وعسى الله أن يرفعك فينتفع بك ناس ويضر بك آخرون ولم يكن له يومئذ إلا ابنة

البخاري 2742صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Bequests
Chapter
Leaving one's heirs wealthy is better than leaving them to beg from people
Numbering
Darussalam 2742
Bukhari 2742