Ali bin Abu Talib reported,

I heard a man asking forgiveness for his parents while they were polytheists, so I said to him, "Do you ask forgiveness for them when they are polytheists?"He replied, "Did Ibrahim not ask forgiveness for his father?"So I went to the Prophet ﷺ and mentioned this to him, and then this verse was revealed, "And the request of forgiveness by Ibrahim for his father was only because of a promise he had made to him" [Tawbah 9:114].

Nasai 2038

Daif

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

عن علي قال

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

النسائي 2038ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Prohibition of seeking forgiveness for the polytheists
Numbering
Darussalam 2038
Nasai 2038