Make a profession of it that there is no god but Allah and I will bear testimony (of your being a Muslim) on the Day of judgment. He (Abu Talib) said: Were it not the fear of the Quraysh blaming me (and) saying that it was the fear of (approaching death) that induced me to do so, I would have certainly delighted your eyes. It was then that Allah revealed: " Verily thou canst not guide to the right path whom thou lovest. And it is Allah Who guideth whom He will and He knoweth best who are the guided" (xxviii-56). (Using translation from Muslim 25b)
قَالَ رَسُولُ اللهِ ﷺ لِعَمِّهِ قُلْ لَا إِلَهَ إِلَّا اللهُ أَشْهَدْ لَكَ بِهَا يَوْمَ الْقِيَامَةِ قَالَ لَوْلَا أَنْ تُعَيِّرَنِي قُرَيْشٌ يَقُولُونَ إِنَّمَا حَمَلَهُ عَلَى ذَلِكَ الْجَزَعُ لَأَقْرَرْتُ بِهَا عَيْنَكَ فَأَنْزَلَ اللهُ ﷻ {إِنَّكَ لَا تَهْدِي مَنْ أَحْبَبْتَ} [القصص 56]