And mention in the Book [the story of] Abraham. Indeed, he was a man of truth and a prophet.
[Mention] when he said to his father, "O my father, why do you worship that which does not hear and does not see and will not benefit you at all?
O my father, indeed there has come to me of knowledge that which has not come to you, so follow me; I will guide you to an even path.
O my father, indeed I fear that there will touch you a punishment from the Most Merciful so you would be to Satan a companion [in Hellfire]."
Allah made Abraham a role model for the beleivers because he fulfilled the obligations of Allah and passed the tests sucessfuly. However, the wrongdower of his posterity will not be a model to be followd by the beleivers.