Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "Allah has distributed your character among you just as He has distributed your provisions among you. Allah grants worldly things to those He loves and to those He does not love, but He grants faith only to those He loves."

Azami 1056

Sahih

عن عبد الله بن مسعود، قال

قال رسول الله ﷺ: إن الله قسم بينكم أخلاقكم، كما قسم بينكم أرزاقكم، وإن الله يعطي الدنيا من يحب ومن لا يحب، ولا يعطي الإيمان إلا من يحب.

الأعظمي 1056صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Allah does not give faith except to one He loves
Numbering
Jami al-Kamil 1056 (2nd edition)
Azami 1056