Narrated 'Ali: I heard a man seeking forgiveness for his parents who were idolaters, so I said to him: 'You seek forgiveness for your parents while they are idolaters?' He said: 'Did Ibrahim not seek forgiveness for his father, and he was an idolater?' So I mentioned that to the Prophet (ﷺ) and (the following) was revealed: It is not for the Prophet nor those who believe, that they should seek forgiveness for the idolaters (9:113).

حَدَّثَنَا مَحْمُودُ بْنُ غَيْلَانَ، حَدَّثَنَا وَكِيعٌ، حَدَّثَنَا سُفْيَانُ، عَنْ أَبِي إِسْحَاق، عَنْ أَبِي الْخَلِيلِ كُوفِيٌّ، عَنْ عَلِيٍّ، قَالَ:‏‏‏‏ سَمِعْتُ رَجُلًا يَسْتَغْفِرُ لِأَبَوَيْهِ وَهُمَا مُشْرِكَانِ، ‏‏‏‏‏‏فَقُلْتُ لَهُ:‏‏‏‏ أَتَسْتَغْفِرُ لِأَبَوَيْكَ وَهُمَا مُشْرِكَانِ ؟ فَقَالَ:‏‏‏‏ أَوَلَيْسَ اسْتَغْفَرَ إِبْرَاهِيمُ لِأَبِيهِ وَهُوَ مُشْرِكٌ ؟ فَذَكَرْتُ ذَلِكَ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَنَزَلَتْ مَا كَانَ لِلنَّبِيِّ وَالَّذِينَ آمَنُوا أَنْ يَسْتَغْفِرُوا لِلْمُشْرِكِينَ سورة التوبة آية 113 ، ‏‏‏‏‏‏قَالَ أَبُو عِيسَى:‏‏‏‏ هَذَا حَدِيثٌ حَسَنٌ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ وَفِي الْبَابِ، ‏‏‏‏‏‏عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، ‏‏‏‏‏‏عَنْ أَبِيهِ.

Explanation
تفسير الحديث

This hadith discusses the issue of seeking forgiveness for polytheists. The companion Ali (may Allah be pleased with him) narrated that he heard a man asking for forgiveness for his parents, who were polytheists, prompting an inquiry about the permissibility of such actions. The man cited the example of Ibrahim (Abraham) who sought forgiveness for his polytheistic father. Ali then mentioned this to the Prophet Muhammad (peace be upon him), and subsequently, a verse was revealed that forbids the Prophet and the believers from seeking forgiveness for polytheists. This hadith clarifies Islam's stance towards polytheism, illustrating that seeking forgiveness for polytheists is not permissible and highlights the lesson derived from the example of the compassion of Ibrahim (peace be upon him) regarding the limits of a believer's loyalty and God's mercy.

هذا الحديث يتحدث عن موضوع الاستغفار للمشركين، حيث ذكر الصحابي علي رضي الله عنه أنه سمع شخصًا يستغفر لأبويه وهما مشركان، فسأله عن ذلك. الشخص استشهد بإبراهيم عليه السلام الذي استغفر لأبيه المشرك. بعد ذلك روى علي هذه الواقعة للنبي محمد صلى الله عليه وسلم، فنزلت الآية التي تحرم على النبي والمؤمنين الاستغفار للمشركين. في هذا الحديث توضيح لموقف الإسلام من الشرك، حيث يوضح أن الاستغفار للمشركين لا يجوز، ويعتبر استدلال الصحابي برحمة إبراهيم عليه السلام درسًا مهمًا في فهم حدود ولاء المؤمنين ورحمة الله.

Source: Jami' Al-Tirmidhi by Abu `Isa Muhammad at-Tirmidhi