وعن أمير المؤمنين أبي حفص عمر بن الخطاب بن نفيل بن عبد العزى بن رياح بن قرط بن رزاح بن عدى بن لؤى ابن غالب القرشى العدوى‏.‏ رضي الله عنه، قال‏:‏ سمعت رسول الله صلى الله عليه وسلم يقول‏:‏ ‏"‏ إنما الأعمال بالنيات، وإنما لكل امرىء ما نوى فمن كانت هجرته إلى الله ورسوله فهجرته إلى الله ورسوله، ومن كانت هجرته لدنيا يصيبها، أو امرأة ينكحها فهجرته إلى ما هاجر إليه‏"‏ ‏(‏‏(‏متفق على صحته‏.‏ رواه إماما المحدثين‏: أبو عبدالله محمد بن إسماعيل بن إبراهيم بن المغيرة بن بَرْدِزْبَهْ الجعفي البخاري، أبو الحسين مسلم بن الحجاج بن مسلم القشيرى النيسابورى رضي الله عنهما في صحيحهما اللذين هما أصح الكتب المصنفة‏)‏‏)‏‏.‏
Copy
Abu Ishaq Sa'd bin Abu Waqqas (May Allah be pleased with him) (one of the ten who had been given the glad tidings of entry into Jannah) narrated

Messenger of Allah (ﷺ) visited me in my illness which became severe in the year of Hajjat-ul-Wada' (Farewell Pilgrimage). I said, "O Messenger of Allah, you can see the pain which I am suffering and I am a man of means and there is none to inherit from me except one daughter. Should I give two-thirds of my property in charity?" He (ﷺ) said, "No". I asked him, "Then half?" He said, "No". Then I asked, "Can I give away one-third". He said, "Give away one-third, and that is still too much. It is better to leave your heirs well-off than to leave them poor, begging people. You will not expend a thing in charity for the sake of Allah, but you will be rewarded for it; even the morsel of food which you feed your wife". I said, "O Messenger of Allah, would I survive my companions?" He said, "If you survive others and accomplish a thing for the sake of Allah, you would gain higher ranking and standing. You will survive them ... your survival will be beneficial to people (the Muslim) and harmful to others (the enemies of Islam). You will survive others till the people will derive benefit from you, and others would be harmed by you." Messenger of Allah (ﷺ) further said, "O Allah, complete for my Companions their emigration and do not cause them to retract." Sa'd bin Khaulah was unfortunate. Messenger of Allah (ﷺ) lamented his death as he died in Makkah.[Al-Bukhari and Muslim].