As for Abraham’s prayer for his father’s forgiveness, it was only in fulfilment of a promise he had made to him. But when it became clear to Abraham that his father was an enemy of Allah, he broke ties with him.1 Abraham was truly tender-hearted, forbearing.
— Dr. Mustafa Khattab, the Clear Quran
And the request of forgiveness of Abraham for his father was only because of a promise he had made to him. But when it became apparent to him [i.e., Abraham] that he [i.e., the father] was an enemy to Allah, he disassociated himself from him. Indeed was Abraham compassionate and patient.
— Saheeh International