Sure Al-Qasas

28:56

إِنَّكَ لَا تَهْدِى مَنْ أَحْبَبْتَ وَلَٰكِنَّ ٱللَّهَ يَهْدِى مَن يَشَآءُ ۚ وَهُوَ أَعْلَمُ بِٱلْمُهْتَدِينَ

Gewiß, du kannst nicht rechtleiten, wen du gern (rechtgeleitet sehen) möchtest. Allah aber leitet recht, wen Er will. Er kennt sehr wohl die Rechtgeleiteten.

Tafsir 28:56

O Messenger, you do not guide whomever you love, such as Abu Talib and others, by enabling him to bring faith, but rather Allah alone is the one who enables whomever He wants to be guided. And He knows better regarding whom it has already passed in His knowledge that he will be amongst those guided to the straight path.