The Messenger of Allah ﷺ was never asked for anything in exchange for accepting Islam without giving it. A man once came to him, and he gave him a flock of sheep filling the space between two mountains. The man returned to his people and said, "My people, embrace Islam, for Muhammad gives so generously that he fears no poverty."In another narration, the man asked the Prophet ﷺ for a flock of sheep between two mountains, and he gave it to him. The hadith continues, and in it Anas said, "A man would embrace Islam wanting nothing but worldly gain, yet before long Islam would become dearer to him than the world and all it contains."
ما سئل رسول الله ﷺ على الإسلام شيئا إلا أعطاه، قال: فجاءه رجل فأعطاه غنما بين جبلين، فرجع إلى قومه، فقال: يا قوم أسلموا، فإن محمدا يعطي عطاء لا يخشى الفاقة. وفي رواية: أن الرجل سأل النبي ﷺ و غنما بين جبلين، فأعطاه إياه… الحديث. وفيه قال أنس: إن كان الرجل ليسلم ما يريد إلا الدنيا، فما يسلم حتى يكون الإسلام أحب إليه من الدنيا وما عليها.
Muslim narrated it in the Book of Virtues (57:2312) from Asim bin Nadr Tamimi, Khalid (meaning Ibn Harith) told us, Humayd told us, from Musa bin Anas, from his father, who said, then he mentioned it.The other narration is also found in Muslim in the Book of Virtues (58:2312) from Abu Bakr bin Abu Shayba, Yazid bin Harun told us, from Hammad bin Salama, from Thabit, from Anas, with similar wording.