(49) بَابُ قَوْلِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «اللَّهُمَّ أَمْضِ لأَصْحَابِي هِجْرَتَهُمْ». وَمَرْثِيَتِهِ لِمَنْ مَاتَ بِمَكَّةَ
Narrated Sa`d bin Malik:
In the year of Hajjat-ul-Wada` the Prophet (ﷺ) visited me when I fell ill and was about to die because of that illness. I said, "O Allah's Messenger (ﷺ)! I am very ill as you see, and I am a rich man and have no heir except my only daughter. Shall I give 2/3 of my property in charity?" He said, "No." I said, "Shall I then give one half of it in charity?" He said, "O Sa`d! Give 1/3 (in charity) and even 1/3 is too much. No doubt, it is better to leave your children rich than to leave them poor, reduced to begging from others. And Allah will reward you for whatever you spend with the intention of gaining Allah's Pleasure even if it were a mouthful of food you put into your wives mouth." I said, "O Allah's Apostle! Am I to be left behind (in Mecca) after my companions have gone?" He said, "If you should be left behind, you will be upgraded and elevated for every deed you will do with a desire to achieve Allah's Pleasure. I hope that you will live long so that some people will benefit by you while others will be harmed. O Allah! Please fulfill the migration of my companions and do not make them turn back on their heels. But (we feel sorry for) the unlucky Sa`d bin Khaulah." Allah's Messenger (ﷺ) lamented his death in Mecca.
Reference: Sahih al-Bukhari 3936
In-book reference: Book 63, Hadith 162
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 5, Book 58, Hadith 273