But to answer to the "works" part,
Abram was Justified and/ or declared Righteous way before God's work through him concerning his son, his only son, Isaac
Gen 15:6 And he believed in the LORD; and he counted it to him for righteousness.
This was some 20+ years before Issac was born, Genesis 21
Have a blessed day!
I agree.
And even before that…
Abraham was justified when he obeyed God to leave his home and go to the promised land; a picture of our salvation.
And the Scripture,
foreseeing that God would justify the Gentiles by faith, preached the gospel to Abraham beforehand, saying, “
In you all the nations shall be blessed.” So then those who are of faith are blessed with believing Abraham.
Galatians 3:8
Here is that scripture again, from the perspective of Hebrews…
By faith Abraham obeyed when he was called to go out to the place which he would receive as an inheritance. And he went out, not knowing where he was going.
Hebrews 11:8
Again from Genesis. —
Now the LORD had said to Abram:
“
Get out of your country,
From your family
And from your father’s house,
To a land that I will show you.
I will make you a great nation;
I will bless you
And make your name great;
And you shall be a blessing.
I will bless those who bless you,
And I will curse him who curses you;
And in you all the families of the earth
So Abram departed as the LORD had spoken to him, and Lot went with him. And Abram was seventy-five years old when he departed from Haran.
Genesis 12:1-4
This is when Abraham was first justified. We see the common theme throughput all the scriptures that pertain to Abraham’s justification.
He obeyed the Lord; the obedience of faith.
This is how we are justified, by the obedience of faith.
But now is made manifest, and by the scriptures of the prophets, according to the commandment of the everlasting God, made known to all nations
for the obedience of faith: Romans 16:26
JPT