God only gives faith to the one He loves
the Messenger of Allah ﷺ said, "Allah has divided between you your characters just as he has divided between you your provisions. Allah gives wealth to the one He loves and to the one whom He does not love, but He does not give faith except to the one He loves. And whomever Allah gives faith to then He indeed loves him. I swear by the One who has the soul of Muḥammad in his Hand, a servant does not have Islam until his heart is in submission, and a servant does not have Islam until his neighbor is safe from his wickedness."
قَالَ رَسُولُ اللَّهِ ﷺ «إِنَّ اللَّهَ قَسَمَ بَيْنَكُمْ أَخْلَاقَكُمْ كَمَا قَسَمَ بَيْنَكُمْ أَرْزَاقَكُمْ۔ وَإِنَّ اللَّهَ يُعْطِي الْمَالَ مَنْ يُحِبُّ وَمَنْ لَا يُحِبُّ، وَلَا يُعْطِي الْإِيمَانَ إِلَّا مَنْ يُحِبُّ۔ فَمَنْ أَعْطَاهُ اللَّهُ الْإِيمَانَ فَقَدْ أَحَبَّهُ۔ وَالَّذِي نَفْسُ مُحَمَّدٍ بِيَدِهِ لَا يُسْلِمُ عَبْدٌ حَتَّى يُسْلِمَ قَلْبُهُ وَلَا يُسْلِمُ عَبْدٌ حَتَّى يَأْمَنَ جَارُهُ بَوَائِقَهُ»