The promise to Abraham and to his descendants, that he would inherit the world, didn't come through the Law but through the righteousness that comes from faith.
If they inherit because of the Law, then faith has no effect and the promise has been canceled.
The Law brings about wrath. But when there isn't any law, there isn't any violation of the law.
That's why the inheritance comes through faith, so that it will be on the basis of God's grace. In that way, the promise is secure for all of Abraham's descendants, not just for those who are related by Law but also for those who are related by the faith of Abraham, who is the father of all of us.
As it is written: I have appointed you to be the father of many nations. So Abraham is our father in the eyes of God in whom he had faith, the God who gives life to the dead and calls things that don't exist into existence.
When it was beyond hope, he had faith in the hope that he would become the father of many nations, in keeping with the promise God spoke to him: That's how many descendants you will have.
Without losing faith, Abraham, who was nearly 100 years old, took into account his own body, which was as good as dead, and Sarah's womb, which was dead.
He didn't hesitate with a lack of faith in God's promise, but he grew strong in faith and gave glory to God.
He was fully convinced that God was able to do what he promised.
Therefore, it was credited to him as righteousness.
But the scripture that says it was credited to him wasn't written only for Abraham's sake.
It was written also for our sake, because it is going to be credited to us too. It will be credited to those of us who have faith in the one who raised Jesus our Lord from the dead.
He was handed over because of our mistakes, and he was raised to meet the requirements of righteousness for us.