It is not for the Prophet and those who have believed, to ask forgiveness for the polytheists, even if they were near of kin, after it has become clear to them that they (the polytheists) are companions of hellfire. And Ibrahim was not asking forgiveness for his father except because of a promise he had made to him. But when it became apparent to Ibrahim that his father was an enemy to Allah , he disassociated himself from him. Indeed Ibrahim was compassionate and forbearing
