Saad bin Abu Waqqas reported,

The Prophet ﷺ visited me during the year of the Farewell Pilgrimage when I was suffering from an illness that brought me to the brink of death. I said, "Messenger of Allah, you can see how much pain I am in. I have wealth, and only one daughter to inherit from me. Shall I give two-thirds of my wealth in charity?"He said, "No."I asked, "Then half of it?"He replied, "A third, Saad, and even a third is a lot. It is better to leave your heirs wealthy than to leave them destitute, begging from people. Whatever you spend seeking the pleasure of Allah, you will be rewarded for it, even the morsel you place in your wife's mouth."I said, "Messenger of Allah, will I be left behind after my companions?"He said, "You will not be left behind to do any deed seeking the pleasure of Allah without it raising you in degree and rank. Perhaps you will be left behind so that some people may benefit from you while others may be harmed by you. O Allah, complete the migration of my companions and do not turn them back on their heels. But the wretched one is Saad bin Khawla." The Messenger of Allah ﷺ grieved for him because he had died in Makkah.Ahmad bin Yunus and Musa narrated from Ibrahim with the wording, "to leave your heirs."

Bukhari 3936

Sahih

حدثنا يحيى بن قزعة حدثنا إبراهيم عن الزهري

عن عامر بن سعد بن مالك عن أبيه قال

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

البخاري 3936صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the Ansar
Chapter
Prophet's ﷺ saying, "O Allah, fulfill the emigration of my companions," and his mourning for those who died in Makkah
Numbering
Darussalam 3936
Bukhari 3936