Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:26:86

And forgive my father. Indeed, he has been of those astray.  

And forgive my father, for indeed he is one of those who are astray, by Your relenting to him and forgiving him: this was before it became clear to him ˹Abraham˺ that he ˹his father˺ was an enemy of God, as mentioned in sūrat Barā’a ˹Q. 9:114˺.
القرآن:٢٦:٨٦

وَاغْفِرْ لِأَبِي إِنَّهُ كَانَ مِنَ الضَّالِّينَ  

{واغفر لأبي إنه كان من الضالين} بأن تتوب عليه فتغفر له وهذا قبل أن يتبين له أنه عدو لله كما ذكر في سورة براءة.