كتاب المقدمات
The Book of Miscellany
(60)
Chapter: Excellence of Generosity and Spending in a Good cause with Reliance on Allah
(60)
- باب الكرم والجود والإنفاق فى وجوه الخير ثقة بالله تعالى
Riyad as-Salihin 552
Anas (May Allah be pleased with him) reported:
Whenever the Messenger of Allah (ﷺ) was asked a thing by one who is about to accept Islam, he would give it. A man came to the Prophet (ﷺ) and he gave him a herd of sheep scattered between two mountains. When he returned to his people, he said to them: "O my people! Embrace Islam because Muhammad gives like one who has no fear of poverty." Some people would embrace Islam only for worldly gains, but soon Islam becomes dearer to them than the world with all what it contains.

[Muslim].

وعن أنس رضي الله عنه قال‏:‏ ما سئل رسول الله صلى الله عليه وسلم على الإسلام شيئاً إلا أعطاه، ولقد جاءه رجل، فأعطاه غنماً بين جبلين فرجع إلى قومه فقال‏:‏ يا قوم أسلموا، فإن محمداً يعطى من لا يخشى الفقر، وإن كان الرجل ليسلم ما يريد إلا الدنيا، فما يلبث إلا يسيراً حتى يكون الإسلام أحب إليه من الدنيا وما عليها”‏.‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 552
In-book reference : Introduction, Hadith 552