Anas bin Malik reported,

A man asked the Prophet ﷺ for a flock of sheep that filled the space between two mountains, and the Prophet ﷺ gave it to him. The man went to his people and said, "My people, embrace Islam, for by Allah, Muhammad gives so generously that he has no fear of poverty."Anas said, "A man would embrace Islam seeking nothing but worldly gain, yet it would not be long before Islam became dearer to him than the world and everything in it."

Muslim 6021

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا يزيد بن هارون عن حماد بن سلمة عن ثابت

عن أنس

أن رجلا سأل النبي ﷺ غنما بين جبلين فأعطاه إياه فأتى قومه فقال أي قوم أسلموا فوالله إن محمدا ليعطي عطاء ما يخاف الفقر فقال أنس إن كان الرجل ليسلم ما يريد إلا الدنيا فما يسلم حتى يكون الإسلام أحب إليه من الدنيا وما عليها

مسلم 6021صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
What the Messenger of Allah ﷺ was asked for something and never said no, and his abundant giving
Numbering
Darussalam 6021
Muslim 6021