Amr bin As reported,

The Messenger of Allah ﷺ said to me, "I intend to send you out in command of an army. Allah will keep you safe, grant you spoils, and I wish for you a fine portion of wealth."I said, "Messenger of Allah, I did not embrace Islam for the sake of wealth. Rather, I embraced Islam out of desire for Islam itself and to be with the Messenger of Allah ﷺ."The Messenger of Allah ﷺ replied, "How excellent is good wealth in the hands of a righteous man."

Azami 7604

Sahih

عن عمرو بن العاص قال

قال لي رسول الله ﷺ: إني أريد أن أبعثك على جيش، فيسلمك الله، ويغنمك، وأرغب لك من المال رغبة صالحة، قال: قلت: يا رسول الله ما أسلمت من أجل المال، ولكني أسلمت رغبة في الإسلام، وأن أكون مع رسول الله ﷺ، فقال رسول الله ﷺ: نعما بالمال الصالح للرجل الصالح.

الأعظمي 7604صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Leadership
Section
Ruler apportions the provisions of governors and officials
Numbering
Jami al-Kamil 7604 (2nd edition)
Azami 7604