Ali bin Abu Talib reported,

I heard a man asking forgiveness for his parents, who were both polytheists, so I said to him, "Are you asking forgiveness for your parents when they are polytheists?"He replied, "Did Ibrahim not ask forgiveness for his father when he was a polytheist?"I mentioned this to the Prophet ﷺ, and then the verse was revealed, "It is not for the Prophet and those who believe to ask forgiveness for the polytheists" [Tawbah 9:113].

Tirmidhi 3101

Daif

حدثنا محمود بن غيلان حدثنا وكيع حدثنا سفيان عن أبي إسحق عن أبي الخليل كوفي

عن علي قال

سمعت رجلا يستغفر لأبويه وهما مشركان فقلت له أتستغفر لأبويك وهما مشركان فقال أوليس استغفر إبراهيم لأبيه وهو مشرك فذكرت ذلك للنبي ﷺ فنزلت {ما كان للنبي والذين آمنوا أن يستغفروا للمشركين}

الترمذي 3101ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Tawbah
Numbering
Darussalam 3101
Tirmidhi 3101