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 worldly ˹provisions˺ to the one He loves and to the one whom He does not love, but He does not faith except to the one He loves."
قَالَ رَسُولُ اللَّهِ ﷺ «إِنَّ اللَّهَ قَسَمَ بَيْنَكُمْ أَخْلَاقَكُمْ كَمَا قَسَمَ بَيْنَكُمْ أَرْزَاقَكُمْ۔ وَإِنَّ اللَّهَ يُعْطِي الدُّنْيَا مَنْ يُحِبُّ وَمَنْ لَا يُحِبُّ وَلَا يُعْطِي الْإِيمَانَ إِلَّا مَنْ يُحِبُّ۔»